Skip to content

Commit 8038a24

Browse files
fix: pin npm to 11.10.0 to avoid promise-retry failure on Node 22.22.2 (#1096)
Pins `npm install -g npm@11` to `npm@11.10.0` in the publish action. Node 22.22.2 bundles npm 10.9.7, which lazily requires `promise-retry`; npm 11.12.0+ removes that module from its bundle, causing a `MODULE_NOT_FOUND` crash during the self-upgrade. npm 11.10.0 still bundles `promise-retry`, avoiding the failure. The upstream fix landed in npm/cli#9152 (merged into npm 10.9.8 / 11.12.1). This pin can be dropped once a Node 22 patch release ships with npm ≥ 10.9.8.
1 parent 98b6c8f commit 8038a24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/actions/npm-publish/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525

2626
- name: Update npm
2727
shell: bash
28-
run: npm install -g npm@11
28+
run: npm install -g npm@11.10.0
2929

3030
- name: Install dependencies
3131
shell: bash

0 commit comments

Comments
 (0)