diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef464cf..54b1db8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,6 +39,8 @@ jobs: - name: Publish to NPM if: startsWith(github.ref, 'refs/tags/') && matrix.node == 18 - run: npm publish + run: | + npm config set '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' + npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}