Repository navigation
ci(release): publish via npm trusted publishing - #21
Merged
Merged
Conversation
…oken The npm environment's NPM_TOKEN is rejected (401), and npm now requires 2FA for direct publishing, so a replacement token would hit the same wall. - Publish job requests an OIDC token (id-token: write) and installs npm 11.21.2, since trusted publishing needs npm 11.5.1+ and Node 22 ships npm 10. - Platform packages now carry `repository`; npm rejects the automatic provenance attestation when it is missing. - The publish script inherits stdin so a local publish can answer npm's 2FA prompt; with stdin ignored, npm fails with EOTP before offering it.
amix
marked this pull request as ready for review
November 10, 2026 08:49
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.
Context
npmenvironment'sNPM_TOKENreturns 401.What was changed
id-token: write, npm 11.21.2 (needs 11.5.1+; Node 22 ships npm 10), noNPM_TOKEN/npm whoamistep.repository. npm rejects the automatic provenance attestation without it.publish-prebuilt-npm.tsinherits stdin so a local publish can answer npm's 2FA prompt (withstdin: "ignore"npm fails withEOTP).Before the next release
dunkdiff,dunkdiff-darwin-arm64,dunkdiff-darwin-x64,dunkdiff-linux-arm64,dunkdiff-linux-x64: repoamix/dunk, workflowrelease-prebuilt-npm.yml, environmentnpm, withnpm publishallowed.NPM_TOKENfrom thenpmenvironment.Out of scope