Skip to content

Commit d64d7f3

Browse files
authored
Pin npm to 11.x to fix release publish (sigstore bundling bug) (#1237)
1 parent 9e7feb2 commit d64d7f3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ jobs:
2929
# npm trusted publishing requires npm 11.5.1+ (Node 22.14.0+)
3030
node-version: '24'
3131
registry-url: 'https://registry.npmjs.org'
32-
# Ensure npm 11.5.1 or later is installed
32+
# Ensure npm 11.5.1 or later is installed.
33+
# Pinned to the 11.x line: npm 12.0.0 ships without the bundled `sigstore`
34+
# module, which breaks provenance publishing (npm/cli#9722).
3335
- name: Update npm
34-
run: npm install -g npm@latest
36+
run: npm install -g npm@11
3537
- name: Setup bun
3638
uses: oven-sh/setup-bun@v2
3739
with:

0 commit comments

Comments
 (0)