fix(ci): publish on Node 24 - #652
Conversation
npm 12 requires Node ^22.22.2 || ^24.15.0 || >=26.0.0, so `npm install -g npm@latest` fails with EBADENGINE on the pinned Node 20. That has blocked every publish since 2026-07-13. Node 24 bundles npm 11.17.0, which already satisfies the npm >= 11.5.1 floor for trusted publishing, so the global npm install is no longer needed.
|
|
Donny/강동윤 (@kdy1) After this merged, the I think it's just a transient error that might resolve on a re-run, but as it stands, half of the plugins are published under |
Fixes #650.
npm install -g npm@latestnow resolves npm 12, which requires Node^22.22.2 || ^24.15.0 || >=26.0.0. The workflow pins Node 20, so the step fails beforepnpm publishruns:Every publish since 2026-07-13 failed this way (runs 296–299), so
swc_corev73–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@latestas a recurring break. Node 20 is also deprecated on GHA runners.Not covered here: the four missed versions (
@swc/plugin-styled-jsx13.16.0–13.19.0 and siblings) still need publishing. Re-running the failed runs replays the Node 20 workflow, and thepublishenvironment is restricted tomain, so that needs a maintainer decision.Overlaps with #651, which fixes the same root cause via Node 22; that one keeps the
npm@lateststep and addsNPM_TOKENauth, which would sidestep the OIDC trusted publishing added in #528.