Skip to content

CI: pin npm to 11 for publish (works around npm@12 sigstore bug)#3875

Merged
markus-moser merged 1 commit into
2025.4from
ci/pin-npm-11-publish
Jul 10, 2026
Merged

CI: pin npm to 11 for publish (works around npm@12 sigstore bug)#3875
markus-moser merged 1 commit into
2025.4from
ci/pin-npm-11-publish

Conversation

@markus-moser

Copy link
Copy Markdown
Contributor

Summary

Pins npm to 11 in .github/workflows/shared-npm-publish.yaml. npm@latest currently resolves to npm@12.0.0, which fails at publish with Cannot find module 'sigstore' — this blocks every canary publish.

The failure

Run #550 (manual dispatch, 2026.x @ c3c89622):

npm error code MODULE_NOT_FOUND
npm error Cannot find module 'sigstore'
npm error Require stack:
npm error - .../npm/node_modules/libnpmpublish/lib/provenance.js

Upstream issue: libnpmpublish requires sigstore for OIDC provenance but the module is missing from npm@12's dependency tree.

Fix

-        run: npx npm@latest publish --tag ${{ inputs.tag }} --access public
+        run: npx npm@11 publish --tag ${{ inputs.tag }} --access public

Minimal and reversible — revert the pin once npm upstream ships a fix.

Test plan

  • After merge and forward-merge to 2026.x: dispatch Frontend build and publish and confirm canary-publish / publish reaches npm publish without the sigstore error, producing a new 1.0.0-canary.* on npm.

The Publish package to npm with OIDC step runs npx npm@latest publish,
which currently resolves to npm@12.0.0. That version fails at publish
time with:

    npm error code MODULE_NOT_FOUND
    npm error Cannot find module sigstore
    npm error Require stack:
    npm error - .../npm/node_modules/libnpmpublish/lib/provenance.js

libnpmpublish requires sigstore for OIDC provenance but the module is
missing from npm@12s dependency tree. This blocks every canary publish
until either npm ships a fix or we pin to a working version. Pinning to
npm@11 is the minimal, reversible fix; revert once npm upstream resolves
this.
@sonarqubecloud

Copy link
Copy Markdown

@markus-moser markus-moser marked this pull request as ready for review July 10, 2026 11:56
@markus-moser markus-moser merged commit 332074b into 2025.4 Jul 10, 2026
14 checks passed
@markus-moser markus-moser deleted the ci/pin-npm-11-publish branch July 10, 2026 11:56
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant