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 }}