Commit 0f70994
authored
fix(ci): publish on Node 24 (#652)
Fixes #650.
`npm install -g npm@latest` now resolves npm 12, which requires Node
`^22.22.2 || ^24.15.0 || >=26.0.0`. The workflow pins Node 20, so the
step fails before `pnpm publish` runs:
```
npm error notsup Required: {"node":"^22.22.2 || ^24.15.0 || >=26.0.0"}
npm error notsup Actual: {"npm":"10.8.2","node":"v20.20.2"}
```
Every publish since 2026-07-13 failed this way (runs 296–299), so
`swc_core` v73–v76 never reached npm.
Node 24 bundles npm 11.17.0, already above the 11.5.1 floor trusted
publishing needs, so the step is removed rather than re-pinned — that
drops `npm@latest` as a recurring break. Node 20 is also deprecated on
GHA runners.
Not covered here: the four missed versions (`@swc/plugin-styled-jsx`
13.16.0–13.19.0 and siblings) still need publishing. Re-running the
failed runs replays the Node 20 workflow, and the `publish` environment
is restricted to `main`, so that needs a maintainer decision.
Overlaps with #651, which fixes the same root cause via Node 22; that
one keeps the `npm@latest` step and adds `NPM_TOKEN` auth, which would
sidestep the OIDC trusted publishing added in #528.1 parent 10e65ec commit 0f70994
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 41 | | |
44 | 42 | | |
0 commit comments