Fix npm publish auth path in release workflow (trusted publishing)#416
Draft
Copilot wants to merge 2 commits into
Draft
Fix npm publish auth path in release workflow (trusted publishing)#416Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job Publish to npm
Fix npm publish auth path in release workflow (trusted publishing)
Jun 6, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The
Publish to npmjob failed in GitHub Actions withE404duringnpm publish --provenance, indicating the publish request was not using the expected npm trusted-publishing auth path. This change aligns the release workflow’s CLI publish step with OIDC-based publishing and avoids token-config interference.Root cause addressed: token-based npm config leaking into publish step
publish-cli-npm, removedregistry-url: https://registry.npmjs.orgfrom the publish job’ssetup-nodestep so it no longer prepares auth via npmrc/token for that job context.Publish step hardened for OIDC trusted publishing
NODE_AUTH_TOKENis set to empty.NPM_CONFIG_USERCONFIGis set to/dev/null.--provenance --access public.Scope
.github/workflows/release.ymlwas changed; no application/runtime code paths were modified.