diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a7b7df..1893e08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,7 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish to NPM - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: | + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ".npmrc" + npm publish --access public + rm ".npmrc"