Repository navigation
ci: stage npm release for maintainer approval - #198
Merged
Merged
Conversation
The trusted publisher is stage-only, so CI now runs npm stage publish instead of npm publish. A maintainer approves the staged release with 2FA (npm stage approve <id> or the Staged Packages tab).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #198 +/- ##
=======================================
Coverage 81.29% 81.29%
=======================================
Files 78 78
Lines 2790 2790
Branches 223 223
=======================================
Hits 2268 2268
Misses 476 476
Partials 46 46 🚀 New features to boost your workflow:
|
This branch was successfully deployed
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
Switches CD to npm staged publishing, matching the stage-only Trusted Publisher configured on
@tarikjabiri/dxf. The previous directnpm publishwas rejected withOIDC permission deniedbecause the trusted publisher grants "npm stage publish" only (npm's default for configs created after 2026-09-03).npm stage publish(instead ofnpm publish) — submits a staged release via OIDC, no tokenactions/setup-node(Node 22 ≥ 22.14.0) +npm install -g npm@latest(≥ 11.15.0) satisfy the staged-publishing requirementsRelease flow after this merges
main) → creates a staged release.npm stage list→npm stage approve <stage-id>, orNotes
--provenance) was dropped from the command since staged publish flags differ; can be revisited once confirmed supported bynpm stage publish.