diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aba56456c..299b6d698 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,9 @@ on: release: types: - created + push: + branches: + - fix-release-workflow jobs: publish: name: Build & Publish to NPM @@ -12,18 +15,19 @@ jobs: - uses: denoland/setup-deno@v1 with: deno-version: v1.x - - name: Retrieve Version - if: startsWith(github.ref, 'refs/tags/') - id: get_tag_version - run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//} + # - name: Retrieve Version + # if: startsWith(github.ref, 'refs/tags/') + # id: get_tag_version + # run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//} - uses: actions/setup-node@v2 with: node-version: "16.x" registry-url: "https://registry.npmjs.org" - name: Build NPM Package - run: deno run -A --no-check=remote ./_tasks/build_npm_pkg.ts ${{steps.get_tag_version.outputs.TAG_VERSION}} + # run: deno run -A --no-check=remote ./_tasks/build_npm_pkg.ts ${{steps.get_tag_version.outputs.TAG_VERSION}} + run: deno run -A --no-check=remote ./_tasks/build_npm_pkg.ts v0.1.0-beta.2 - name: Publish NPM Package - if: startsWith(github.ref, 'refs/tags/') + # if: startsWith(github.ref, 'refs/tags/') env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: cd target/npm_pkg && npm publish + run: cd target/npm && npm publish