ci: run on Node 24 and align types with the runtime

The runner already defaults to Node 24 and local dev is on v24.14.0, while CI
pinned 22 and @types/node was still ^22 — so the type definitions described an
older runtime than anything actually running.

- CI node-version 22 -> 24
- @types/node ^22 -> ^24 (matches the runtime major; the newer ^26 line targets
  Node 26, which we don't run)
- declare engines.node >=24 so local, CI, and Vercel resolve the same major

All six CI gates pass locally on Node 24: secret-leak, format:check, test (97),
lint, typecheck, build.
This commit is contained in:
2026-07-25 15:57:10 +07:00
parent f0faece37b
commit 4e59b0d03e
3 changed files with 38 additions and 31 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ jobs:
- uses: actions/setup-node@v7
with:
node-version: 22
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile