From 57741cae46341e0e44e464c89c87124a46e6b27d Mon Sep 17 00:00:00 2001 From: ocavue Date: Sun, 28 Jul 2024 19:04:37 +1000 Subject: [PATCH] chore: fix publish workflow and trigger a release Release-As: 0.3.3 --- .github/workflows/release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1893e08..29dfc78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: publish: runs-on: ubuntu-latest needs: [version] - # if: ${{ needs.version.outputs.release_created }} + if: ${{ needs.version.outputs.release_created }} steps: - uses: actions/checkout@v4 @@ -40,7 +40,6 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish to NPM - run: | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ".npmrc" - npm publish --access public - rm ".npmrc" + run: yarn publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}