ci(publish): pin npm to 11.18.0 for provenance publish (sigstore fix)#497
Merged
Conversation
npm 12.0.0 (2026-07-08) ships without a resolvable sigstore module, so publish --provenance dies with MODULE_NOT_FOUND under both npx and a global install. Pin to 11.18.0 — the last release that published cleanly (2026-07-02) and is OIDC-capable (>= 11.5.1) — on both the canary and release jobs. Reverts the inert global-install change from #495. Closes #494
|
ntk preview
Built from |
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
Pin npm to
11.18.0for the--provenancepublish step, on both the canary and release jobs.Why
PR #495 (global
npm install -g) was inert — canary still failed identically (run 29103166676):The require stack points at the globally-installed npm, proving the install method was never the problem.
Real root cause — verified against the npm registry:
npm 12.0.0 (published 2026-07-08) ships broken:
libnpmpublishrequiressigstorebut it is absent from npm's bundled deps, so--provenancedies regardless of npx vs global install. Nothing in the repo changed.Fix
Pin to
npm@11.18.0— the last release that published cleanly and is OIDC-capable (≥ 11.5.1, required by the tokenless trusted-publishing step). Revert to the simplenpx --yes npm@<pinned>form.Bump the pin once npm 12.x fixes the bundled
sigstore.Verification
Closes #494