Commit eb2ddb2
committed
ci: use corepack to pin npm 11.13.0, avoid self-upgrade race
`npm install -g npm@11.13.0` hits a known self-upgrade race on the
GitHub-hosted ubuntu and macos runners: the in-flight npm 10 process
tries to require modules that the new npm 11 has already overwritten,
producing `Cannot find module 'promise-retry'` partway through
reify-output. Corepack sidesteps this by managing npm via its own
shim instead of overwriting Node's bundled npm.
`corepack enable npm` is required because `corepack enable` alone
only shims yarn/pnpm.1 parent 2772399 commit eb2ddb2
3 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments