From 0b7b854a16e8834f0ac2161e60255092238ba50e Mon Sep 17 00:00:00 2001 From: Ashley <12901850+hello-ashleyintech@users.noreply.github.com> Date: Fri, 16 Sep 2022 12:53:32 -0400 Subject: [PATCH] Revert "Test ashley deno (#1)" (#3) This reverts commit d82f5bdaf4c3e2224f0bdac94d470fb8cfcfefe7. --- .github/workflows/deno-build.yml | 17 ++++++++++++----- packages/web-api/deno-shims/util-shim.js | 1 - packages/web-api/deno-shims/zlib-shim.js | 1 - 3 files changed, 12 insertions(+), 7 deletions(-) delete mode 100644 packages/web-api/deno-shims/util-shim.js delete mode 100644 packages/web-api/deno-shims/zlib-shim.js diff --git a/.github/workflows/deno-build.yml b/.github/workflows/deno-build.yml index a80d2bba4..3fd8355e9 100644 --- a/.github/workflows/deno-build.yml +++ b/.github/workflows/deno-build.yml @@ -4,9 +4,6 @@ on: push: tags: - '@slack/web-api*' - - '!@slack/web-api*nextGen*' - - '!@slack/web-api*Beta*' - - '!@slack/web-api*beta*' defaults: run: @@ -33,7 +30,17 @@ jobs: run: | perl -pi.bak -e 's/"tsd": {/"browser":{"os":"os-browserify","path":"path-browserify","querystring":".\/deno-shims\/qs-shim.js"},"tsd": {/g' package.json perl -pi.bak -e 's/"axios": /"path-browserify":"1.0.1","os-browserify":"0.3.0","axios": /g' package.json - perl -pi.bak -e 's/"p-retry":/"zlib":".\/deno-shims\/zlib-shim.js","util":".\/deno-shims\/util-shim.js","p-retry":/g' package.json - run: npm install - run: npm run build:deno - + - run: mv mod.js ../../. + - name: Commit and tag built artifact to separate branch + run: | + git config user.name slack-cicd + git config user.email github-cicd@slack.com + git checkout -- package.json + git checkout deno-web-api + mv ../../mod.js . + git add mod.js + git commit -m "Adding transpiled deno ${GITHUB_REF_NAME} release artifact." + git tag "deno/${GITHUB_REF_NAME}" + git push --tags diff --git a/packages/web-api/deno-shims/util-shim.js b/packages/web-api/deno-shims/util-shim.js deleted file mode 100644 index 29329f538..000000000 --- a/packages/web-api/deno-shims/util-shim.js +++ /dev/null @@ -1 +0,0 @@ -export * from "https://deno.land/std@0.155.0/node/util.ts" diff --git a/packages/web-api/deno-shims/zlib-shim.js b/packages/web-api/deno-shims/zlib-shim.js deleted file mode 100644 index fd6de9825..000000000 --- a/packages/web-api/deno-shims/zlib-shim.js +++ /dev/null @@ -1 +0,0 @@ -export * from "https://deno.land/std@0.129.0/node/zlib.ts"