Conversation
setup-node with registry-url sets NODE_AUTH_TOKEN to the GitHub token, which npm uses instead of its OIDC flow, causing auth failures. Remove registry-url/always-auth and switch beta workflow to OIDC too. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Docs ReviewNo documentation updates are needed for this PR. Reason: This PR contains internal CI/CD infrastructure changes to fix npm OIDC trusted publishing in the release workflows. These are purely DevOps changes that:
These changes don't affect any user-facing functionality, CLI usage, installation instructions, or developer workflows. The changes are transparent to end users—the CLI will continue to work exactly as documented. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
registry-urlandalways-authfromsetup-nodein both release workflows — these causesetup-nodeto setNODE_AUTH_TOKENto the GitHub token, which npm uses instead of its native OIDC flow, resulting inAccess token expired/404errors on publishid-token: write,--provenance,npm@latest, removeNPM_TOKENusage)Test plan
npm publish --provenancesucceeds via OIDCbeta-release.ymlas a trusted publisher on npmjs.com for@continuedev/cliNPM_TOKENsecret from repo after confirming both workflows work🤖 Generated with Claude Code
Continue Tasks: ✅ 7 no changes — View all
Summary by cubic
Switch beta and stable release workflows to npm OIDC trusted publishing to fix auth failures during npm publish. Remove setup-node registry settings that injected a GitHub token, add id-token permissions, upgrade to npm@latest, and publish with provenance.
Bug Fixes
Migration
Written for commit 36d82f7. Summary will update on new commits.