Skip to content

Commit b359783

Browse files
ci: pin npm to 11.18.0 (npm 12.0.0 broke provenance publishing) (#178)
1 parent 5d42134 commit b359783

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ jobs:
5757
- name: Build
5858
run: pnpm run build
5959

60-
- run: npm install -g npm@latest
60+
# Pinned (not @latest): npm 12.0.0 (2026-07-08) broke `--provenance` with
61+
# "MODULE_NOT_FOUND: Cannot find module 'sigstore'". 11.18.0 is the last
62+
# known-good release (>= 11.5.1 for OIDC). Revisit once a fixed 12.x ships.
63+
- run: npm install -g npm@11.18.0
6164

6265
- name: Bump patch, commit, tag, push
6366
run: |
@@ -147,7 +150,9 @@ jobs:
147150
# id-token → registry-token exchange the trusted-publisher entry expects.
148151
# Safe here because agent-app has no `workspace:` protocol deps to leak
149152
# (peers are plain version ranges). The package ships only ./dist.
150-
- run: npm install -g npm@latest
153+
# Pinned (not @latest): npm 12.0.0 (2026-07-08) broke `--provenance`
154+
# (sigstore MODULE_NOT_FOUND). 11.18.0 is the last known-good. Revisit on 12.x fix.
155+
- run: npm install -g npm@11.18.0
151156
- run: npm --version
152157

153158
# Idempotent: re-running a tag whose npm version is already published must

0 commit comments

Comments
 (0)