Repository navigation
fix(release): stage every package so pnpm's trust policy accepts new releases - #435
Conversation
…releases comark-annotate, comark-carousel, and comark-zoom began with staged publishes, which pnpm ranks above a direct trusted publish. Every release since 0.4.1 published directly, so pnpm's trustPolicy: no-downgrade refuses them. Releases are staged again, and a verify job fails for any version that goes out without a staged publish.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes — Reviewed the release workflow, registry trust verifier, regression tests, and publishing documentation across all five changed files.
- Staged releases: Changes tarball publication to
npm stage publishthrough OIDC and lists dependency waves for manual approval. - Trust verification: Adds a separate approval-waiting job that rejects missing or unstaged releases and explains historical trust downgrades.
- Regression coverage and guidance: Tests evidence ranking and the staging requirement, and documents blocked historical releases and release recovery.
- Validation: All three focused tests, targeted lint, and targeted typechecking passed; CLI checks covered staged, missing, and downgraded versions. The npm CLI contract was checked against upstream source, but live staging and private trusted-publisher settings were not exercised.
gpt-6.1-sol(xhigh) | 𝕏
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
Latest result Pull request merged. Final answersSession Pull request merged. |

With pnpm's
trustPolicy: no-downgrade, no current comark-ui installs. On pnpm 12.18.0:pnpm ranks evidence as staged publish (
_npmUser.approver) > trusted publisher with provenance > provenance alone (trust_checks.rs). It refuses a version when any version published before it has stronger evidence. comark-annotate, comark-carousel and comark-zoom shipped 0.1.0 to 0.2.0 staged. #42 switched tonpm publishto skip the per-package 2FA approvals, so everything from 0.4.1 on went out one rank lower. Those three packages are blocked from 0.4.1 to 0.12.2, and comark-ui and comark-linter fail through them. The other 51 packages were never staged, so they install fine.This PR moves the release back to
npm stage publish, so every package carries the strongest evidence pnpm knows. The publish job lists the dependency waves in its summary, so approvals go in the same order as before. A new verify job waits for the approvals and fails for any version that went out without a staged publish, naming the downgrade when there is one.test/npm-trust.test.tsfails if the workflow callsnpm publishagain, so this is checked in CI without secrets.The 0.4.1 to 0.12.2 releases stay blocked, since pnpm only looks at publish order. Ranges heal once a staged 0.12.3 is out: pnpm sets a downgraded candidate aside and picks the next match, so
[email protected]resolves^0.12.1to 0.12.3. The docs section on trust errors now says that.Before the next release, each package's trusted publisher on npmjs.com needs
npm stage publishallowed (andnpm publishcan go off). I couldn't check the current settings, and I haven't run a staged release from this workflow yet.