Repository navigation
ci: publish to npm on version tag - #27
Merged
Merged
Conversation
|
npm side setup. However as a general rule I am not allowing direct publishing on these integrations. It requires an admin approval and a |
taylanpince
approved these changes
Sep 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.
Stages an npm release when a
v*tag is pushed. CI runsnpm stage publishover npm trusted publishing (OIDC), so the repo holds no npm token. A staged version stays private until an npm maintainer approves it.The job fails before staging if the tag isn't on master or doesn't match the
package.jsonversion (v2.0.0for 2.0.0). It builds explicitly and stages with--ignore-scripts, so the package never depends on thepreparehook running.Needs a one-time setup by an npm maintainer before the first tag: on npmjs.com, @0xsequence/catapult > Settings > Trusted Publisher > GitHub Actions, with organization
0xsequence, repositorycatapult, workflowpublish.yml, environment blank, and stage publish allowed (publish not allowed). npm doesn't validate these on save, so a typo only shows up as ENEEDAUTH on the first run.Once merged and configured, releasing 2.0.0 is:
Then a maintainer approves it, either on npmjs.com or with
npm stage list @0xsequence/catapultandnpm stage approve <stage-id>(prompts for 2FA).Every version already on npm has a tag, except 1.3.2, whose publish commit was never pushed. Don't re-push or re-create those tags: the version is already on npm, so the staging step would fail.