Skip to content

chore: update Node to 24 and GitHub Actions to v7 - #469

Merged
penge merged 3 commits into
masterfrom
chore/node-24
Oct 25, 2026
Merged

penge merged 3 commits into
masterfrom
chore/node-24

Conversation

@penge

@penge penge commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Node 20 reached end of life in April 2026. Node 24 runs the TypeScript scripts (build.ts, watch.ts, env/set-client-id.ts, scripts/set-version.ts) and jest.config.ts directly with its built-in type stripping, so ts-node and register.js are no longer needed.

Changes

  • Update .nvmrc and engines.node to Node 24
  • Update engines.npm to >=11.0.0
  • Update @types/node from ^20.19.43 to ^24.19.2
  • Run the TypeScript scripts with node ./<script>.ts instead of node --import ./register.js ./<script>.ts
  • Remove register.js, the ts-node dev dependency and its tsconfig.json config block
  • Update actions/checkout from v4 to v7
  • Update actions/setup-node from v4 to v7
  • Read the Node version from .nvmrc in CI

- Update `.nvmrc`, `engines.node` and the CI workflow to Node 24
- Update `engines.npm` to `>=11.0.0`
- Update `@types/node` from `^20.19.43` to `^24.19.2`
- Run the TypeScript scripts with Node's built-in type stripping
  instead of registering `ts-node/esm` through `register.js`
- Remove `register.js`, the `ts-node` dev dependency and its
  `tsconfig.json` config block

Signed-off-by: penge <ppenge@gmail.com>
@penge penge self-assigned this Oct 25, 2026
- Update `actions/checkout` from `v4` to `v7`
- Update `actions/setup-node` from `v4` to `v7`
- Read the Node version from `.nvmrc` in CI
- Cache npm dependencies in CI

Signed-off-by: penge <ppenge@gmail.com>
@penge penge changed the title chore: update Node from 20 to 24 chore: update Node to 24 and GitHub Actions to v7 Oct 25, 2026
Remove `cache: npm` from the `setup-node` step. With `npm ci` taking
about 5 seconds, a restored cache saves about 2 seconds, while a run
without one, the first of every PR, is slower by about as much.

Signed-off-by: penge <ppenge@gmail.com>
@penge
penge merged commit db25cc1 into master Oct 25, 2026
1 check passed
@penge
penge deleted the chore/node-24 branch October 25, 2026 18:22
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.

1 participant