sec: update to using staged publishing#10926
Merged
Merged
Conversation
Contributor
|
Just wanted to confirm -- did you also update the Trusted Publishing config on the npm registry side to enable staged publishing for OIDC (see recommended setup)? This is required for staged publishing to succeed, or else it fails with a 403. Would also recommend updating forbidding regular |
This was referenced May 23, 2026
jasonsaayman
pushed a commit
that referenced
this pull request
May 24, 2026
* ci(publish): adopt npm staged publishing on v0.x Switch the v0.x publish workflow to `npm stage publish` so a maintainer must approve each release from npm's stage queue (2FA proof-of-presence) before it becomes installable, even for non-interactive OIDC CI publishes. Mirrors the staged-publishing model upstream adopted on v1.x (#10926). Pin npm to 11.15.0 explicitly: Node 24/26 currently bundle npm 11.13.0, below the 11.15.0 minimum that `npm stage publish` requires. * docs(ci): note npm pin is temporary until node bundles npm 11.15.0
jasonsaayman
added a commit
that referenced
this pull request
May 28, 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.
Summary
Update to publish action to use staged publishing
Linked issue
N/A
Changes
N/A
Checklist
index.d.tsandindex.d.cts)Summary by cubic
Switch the release workflow to npm’s staged publishing for safer, auditable releases. Replaces
npm publishwithnpm stage publishin CI.Description
.github/workflows/publish.ymlto runnpm stage publish --provenance --access public.npmthat supports staged publishing (npm v10.8+).Docs
Please update the release guide in
/docs/to:npm stage publish).npmversion.Testing
Semantic version impact
No impact to package semantics. Infrastructure-only change; treat as a patch (no API changes).
Written for commit b8d5278. Summary will update on new commits. Review in cubic