Repository navigation
fix(ci): publish 0.10.x via npm trusted publishing - #3293
Merged
Merged
Conversation
The v0.10.66 release failed at `npm publish` with E404 on the PUT, which is npm's response to a publish without valid auth. This workflow only sends the NPM_TOKEN secret, last set 2026-01-09 and now expired. Master publishes through npm trusted publishing (OIDC), which needs `id-token: write` and npm >= 11.5.1; npm 6 on Node 14 can't use it. Grant `id-token: write` and switch to Node 24 for the publish step only, keeping the Node 14 build, and drop the stale token.
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.
Additional description
The v0.10.66 publish run built the package, then failed at
npm publish:Root cause: npm returns a 404 on a scoped PUT when the publish has no valid auth.
secrets.NPM_TOKEN. That secret was last set on 2026-01-09, when 0.10.65 was published, and has since expired.id-token: writeand npm >= 11.5.1, which npm 6 can't provide.latestdist-tag isn't involved. The registry rejects the request before it applies a tag.Fix:
id-token: write.npm's trusted publisher entry matches the repo and the
npm-publish.ymlfilename, which 0.10.x shares with master.After merge: re-running the failed run would use the old workflow from the tag. Instead, delete and recreate the v0.10.66 release and its tag targeting
0.10.x. That also fixes the release title, which currently reads "v0.10.65".Verification
+ @salesforce/[email protected].npm view @salesforce/design-system-react dist-tagsshowslatest: 0.10.66, withalphaunchanged.