Skip to content

Pin npm to 11.x to fix release publish (sigstore bundling bug)#1237

Merged
nolannbiron merged 1 commit into
mainfrom
nolann/fix-npm-provenance-sigstore
Jul 9, 2026
Merged

Pin npm to 11.x to fix release publish (sigstore bundling bug)#1237
nolannbiron merged 1 commit into
mainfrom
nolann/fix-npm-provenance-sigstore

Conversation

@nolannbiron

@nolannbiron nolannbiron commented Jul 9, 2026

Copy link
Copy Markdown
Member

Problem

The Release job fails at changeset publish with npm error Cannot find module 'sigstore' (from libnpmpublish/lib/provenance.js).

npm 12.0.0 (released 2026-07-08) ships without the bundled sigstore module that libnpmpublish requires to generate provenance. The workflow ran npm install -g npm@latest, picking up the broken 12.0.0, so publishing with NPM_CONFIG_PROVENANCE: true crashes. Upstream: npm/cli#9722.

The crash happens before any package is pushed, so @gitbook/api@0.187.0 (bumped by #1236) never reached npm.

@changeset-bot

changeset-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 71b7d27

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

bun add https://pkg.pr.new/GitbookIO/integrations/@gitbook/api@1237

commit: 71b7d27

@nolannbiron
nolannbiron merged commit d64d7f3 into main Jul 9, 2026
12 checks passed
@nolannbiron
nolannbiron deleted the nolann/fix-npm-provenance-sigstore branch July 9, 2026 09:13
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.

3 participants