From 2d163ce0da1fa4b048e9565c02afd66514eb688b Mon Sep 17 00:00:00 2001 From: Evan Vetere Date: Wed, 4 Nov 2026 20:28:26 -0500 Subject: [PATCH] chore: Raise the Node engines floor to 24 Strapi Cloud is the CMS host and Node 24 is the version we accept there, so the engines range no longer needs to admit Node 22. CI built only on the .nvmrc Node 26, so nothing proved the floor actually works. Key changes: - engines.node is >=24.0.0 <=26.x.x in package.json and the lockfile - CI also installs and builds on Node 24, failing if the Node it runs is not 24 --- .github/workflows/ci.yaml | 4 +++- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 04e7eeb..3dd39e0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,4 +12,6 @@ jobs: ci: uses: datum-cloud/actions/.github/workflows/ci-basic.yaml@v1.26.0 with: - run: npm ls react react-dom react-router-dom styled-components + run: | + npm ls react react-dom react-router-dom styled-components + npx --yes -p node@24 -- bash -euo pipefail -c 'node --version | grep -q "^v24\." && npm ci && npm run build' diff --git a/package-lock.json b/package-lock.json index b2f1655..e109f85 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "eslint": "^9.39.2" }, "engines": { - "node": ">=22.19.0 <=26.x.x", + "node": ">=24.0.0 <=26.x.x", "npm": ">=6.0.0" } }, diff --git a/package.json b/package.json index 62a09cc..45aac93 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "zod": "^4.1.12" }, "engines": { - "node": ">=22.19.0 <=26.x.x", + "node": ">=24.0.0 <=26.x.x", "npm": ">=6.0.0" }, "devDependencies": {