Conversation
There was a problem hiding this comment.
Pull request overview
This pull request updates the GitHub Actions workflow for publishing npm packages by removing the env block that provides authentication credentials for npm publishing.
Changes:
- Removed the
envblock containingNODE_AUTH_TOKENfrom the npm publish step in the publish workflow
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
.github/workflows/publish.yml
Outdated
| - run: npm publish --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} No newline at end of file | ||
| - run: npm publish --access public No newline at end of file |
There was a problem hiding this comment.
Removing the NODE_AUTH_TOKEN environment variable will cause the npm publish step to fail due to missing authentication credentials.
When using actions/setup-node with registry-url, the NODE_AUTH_TOKEN environment variable is required to authenticate with the npm registry for publishing packages. The setup-node action creates an .npmrc file that references NODE_AUTH_TOKEN, and without this environment variable being set, npm publish will not have the necessary credentials to authenticate and publish the package.
To publish to npm successfully, the env block with NODE_AUTH_TOKEN should be retained.
| - run: npm publish --access public | |
| - run: npm publish --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
No description provided.