Skip to content

Commit b90255f

Browse files
committed
Release: pin npm to 11.x for publishing (npm 12.0.0 provenance is broken - npm/cli#9722)
1 parent 9927a56 commit b90255f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ jobs:
3838
node-version: 22
3939
cache: npm
4040
cache-dependency-path: patter/package-lock.json
41-
- name: OIDC-aware npm (trusted publishing needs >= 11.5.1)
42-
run: npm install -g npm@latest
41+
# Needs >= 11.5.1 for OIDC trusted publishing. Pinned to the 11.x line on purpose:
42+
# npm 12.0.0 ships a broken provenance path ("Cannot find module 'sigstore'"),
43+
# which aborted every publish once `@latest` rolled over to it - npm/cli#9722.
44+
- name: OIDC-aware npm (>= 11.5.1; pin off the broken npm 12.x)
45+
run: npm install -g npm@11
4346
# Pre-seed ~/.npmrc so the changesets action doesn't write its own token line
4447
# (there is no token); npm's OIDC detection handles auth by itself.
4548
- run: echo "# auth via npm trusted publishing (OIDC) - no token" > ~/.npmrc

0 commit comments

Comments
 (0)