Skip to content

Commit 9f76377

Browse files
committed
ci: pin publish npm to 11.x — npm@12.0.0 lacks sigstore under prefix install
npm@12.0.0 (released 2026-07-08) installed via `npm install --prefix` is missing its sigstore module, so `npm publish` fails with MODULE_NOT_FOUND before reaching the registry. 11.x still satisfies the >= 11.5.1 trusted-publishing requirement.
1 parent 6b57f73 commit 9f76377

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@ jobs:
5050
# npm >= 11.5.1 is required for trusted publishing (OIDC).
5151
# Install into a separate prefix first to avoid the self-overwrite
5252
# MODULE_NOT_FOUND bug seen when npm rewrites its own files in place.
53+
# Pinned to the 11.x line: npm@12.0.0 installed this way is missing
54+
# its `sigstore` module and `npm publish` dies with MODULE_NOT_FOUND
55+
# (broke the v0.7.6 release, 2026-07-09).
5356
- name: Upgrade npm
5457
run: |
55-
npm install --prefix "$RUNNER_TEMP/npm-upgrade" npm@latest
58+
npm install --prefix "$RUNNER_TEMP/npm-upgrade" npm@11
5659
echo "$RUNNER_TEMP/npm-upgrade/node_modules/.bin" >> "$GITHUB_PATH"
5760
5861
- name: Install dependencies

0 commit comments

Comments
 (0)