-
Notifications
You must be signed in to change notification settings - Fork 11
Add NPM_TOKEN to semantic-release step #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: lirantal <316371+lirantal@users.noreply.github.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
🎉 This PR is included in version 2.9.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
User description
The semantic-release publish step fails with 401 Unauthorized because
@semantic-release/npmrequires npm authentication even when provenance is enabled.Changes
NPM_TOKENenvironment variable to the release step in.github/workflows/main.ymlNote
Requires
NPM_TOKENsecret to be configured in repository settings with a valid npm access token having publish permissions.Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
PR Type
Bug fix
Description
Add
NPM_TOKENenvironment variable to semantic-release stepFixes 401 Unauthorized error during npm publish workflow
Enables proper authentication for
@semantic-release/npmpluginDiagram Walkthrough
File Walkthrough
main.yml
Add NPM_TOKEN to release step environment.github/workflows/main.yml
NPM_TOKENenvironment variable to the release step