Skip to content

ci(publish): pin npm to 11.18.0 for provenance publish (sigstore fix)#497

Merged
bntvllnt merged 1 commit into
mainfrom
fix/pin-npm-provenance
Jul 10, 2026
Merged

ci(publish): pin npm to 11.18.0 for provenance publish (sigstore fix)#497
bntvllnt merged 1 commit into
mainfrom
fix/pin-npm-provenance

Conversation

@bntvllnt

Copy link
Copy Markdown
Collaborator

What

Pin npm to 11.18.0 for the --provenance publish step, on both the canary and release jobs.

Why

PR #495 (global npm install -g) was inert — canary still failed identically (run 29103166676):

npm error Cannot find module 'sigstore'
npm error - /opt/hostedtoolcache/node/22.23.1/x64/lib/node_modules/npm/node_modules/libnpmpublish/lib/provenance.js

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:

date npm@latest publish result
2026-07-02 11.18.0 success
2026-07-08 12.0.0
2026-07-10 12.0.0 fails: sigstore MODULE_NOT_FOUND

npm 12.0.0 (published 2026-07-08) ships broken: libnpmpublish requires sigstore but it is absent from npm's bundled deps, so --provenance dies 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 simple npx --yes npm@<pinned> form.

Bump the pin once npm 12.x fixes the bundled sigstore.

Verification

  • YAML parses.
  • End-to-end proof is the canary auto-publish on merge to main (the failing path). Will confirm the Publish run goes green post-merge.

Closes #494

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
@vllnt-pilot vllnt-pilot Bot deployed to Preview · pr-497 (ntk) July 10, 2026 15:32 Active
@vllnt-pilot

vllnt-pilot Bot commented Jul 10, 2026

Copy link
Copy Markdown

ntk preview

App Status Preview
ui-registry Skipped (preview cell not configured)
storybook Skipped (preview cell not configured)

Built from 79447043 · public + no-index (ADR-082) · torn down on close

@bntvllnt bntvllnt merged commit d096967 into main Jul 10, 2026
8 checks passed
@bntvllnt bntvllnt deleted the fix/pin-npm-provenance branch July 10, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

canary publish fails: npx npm@latest --provenance cannot resolve bundled sigstore

1 participant