Repository navigation
Stage releases on npm instead of publishing them (0.1.3) - #6
Merged
Merged
Conversation
The release workflow now runs `npm stage publish` as the package's trusted publisher and holds no npm token. A staged version becomes installable only when a maintainer approves it on npm with their second factor. Version 0.1.3: the v0.1.2 tag carries the workflow that ran `npm publish`, which the stage-only trusted publisher refuses, so 0.1.2 never reached npm.
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.
What changes
.github/workflows/publish.ymlrunsnpm stage publishinstead ofnpm publish. A staged version is not installable until a maintainer approves it on npmjs.com (Staged Packages) or withnpm stage approve, both of which ask for their second factor.NPM_TOKENpath is removed. The workflow authenticates only as the package's trusted publisher (OIDC), and that publisher allowsnpm stage publishonly, so nothing in this repository can put a version on npm by itself.npm publishthe stage-only trusted publisher refused (403 OIDC permission denied for this action), so 0.1.2 is not on npm. 0.1.3 has the same library code as 0.1.2.After merging
Publish a GitHub release
v0.1.3, then approve the staged version on npmjs.com.