diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 51d7ad7..de22fee 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,11 +25,7 @@ jobs: run: npm run build - name: Publish package to GitHub Package Registry - run: npm publish --registry=https://npm.pkg.github.com - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: echo //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }} > .npmrc && npm publish --registry=https://npm.pkg.github.com - name: Publish package to NPM - run: npm publish --registry=https://registry.npmjs.org - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} > .npmrc && npm publish --registry=https://registry.npmjs.org