Skip to content

fix: cap npm at 11.x so the publish job works on node 20 - #101

Merged
azebuado merged 1 commit into
mainfrom
fix/npm-pin-11
Sep 16, 2026
Merged

azebuado merged 1 commit into
mainfrom
fix/npm-pin-11

Conversation

@limitofzero

@limitofzero limitofzero commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

The Publish NPM Package job has been failing since August, so @cowprotocol/cms is stuck at
0.13.0 on npm while this repo is at 0.15.0.

Two constraints collided:

  • NODE_VERSION is pinned to lts/iron (Node 20) because Strapi 4.26.1 doesn't support Node 22.
  • npm@latest is now npm 12, which declares engines.node: "^22.22.2 || ^24.15.0 || >=26.0.0".

So the npm install -g npm@latest step aborts with EBADENGINE before the job ever reaches
yarn install or publish-lib.sh:

npm error notsup Not compatible with your version of node/npm: npm@12.0.2
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"}

Capping the range at ^11 resolves to 11.19.1, whose engines.node is
"^20.17.0 || >=22.9.0" — satisfied by the runner's v20.20.2 — while staying above the >= 11.5.1
that trusted publishing needs. The step keeps doing its job; it just stops following npm across a
major that Node 20 can't run.

Unblocks cowprotocol/cowswap#7846, which needs the CMS collection types
from 0.15.0.

@limitofzero limitofzero self-assigned this Sep 16, 2026
@limitofzero limitofzero changed the title fix: pin npm 11 to pass handle ci flow fix: cap npm at 11.x so the publish job works on node 20 Sep 16, 2026
@azebuado
azebuado merged commit 324305e into main Sep 16, 2026
3 checks passed
@azebuado
azebuado deleted the fix/npm-pin-11 branch September 16, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants