← All notes

2 min read

Node 20 reaches end of life on Thursday

On 30 April, Node.js 20 gets its last day of support. Where it still hides in your projects, which version to move to, and what GitHub Actions is doing about it.

On this page

Node.js 20 "Iron" reaches end of life on 30 April 2026. After that, no more security fixes. If a vulnerability in Node 20 shows up in May, it stays open.

Where to go

VersionStatus at the end of AprilEnd of life
Node 22Maintenance LTS30 April 2027
Node 24Active LTS30 April 2028
Node 26Release planned for 5 May30 April 2029

For most projects, Node 24 is the obvious target: it's the active LTS and supported for two more years. Node 22 is fine as a stepping stone, but you'll be back here in a year.

Where Node 20 hides

The version on your laptop is the easy part. The forgotten ones:

  • Docker images: FROM node:20-alpine in a Dockerfile nobody has opened in a year.
  • CI: node-version: 20 in GitHub Actions workflows.
  • .nvmrc and engines in package.json, which tools and colleagues rely on.
  • Hosting settings: serverless runtimes and platform configs that pin a version outside the repo.
  • Build steps in WordPress projects: theme and block builds that run on whatever Node the server or pipeline has.

A quick grep -rn "node.*20" Dockerfile .github .nvmrc package.json finds most of them.

GitHub Actions

Actions written in JavaScript run on the runner's own Node, separate from the version your workflow sets up. GitHub plans to make Node 24 the default for those actions in June. You can test now by setting FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true as an environment variable in a workflow. If an old action breaks, ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true keeps Node 20 for a while, but that's a crutch with an expiry date, not a fix.

Check your self-hosted runners

Node 24 doesn't support macOS 13.4 and older, and has no official ARM32 builds. Old runner machines may need replacing, not just updating.

Takeaways

  • Move to Node 24 now; it's supported until 2028.
  • Search Dockerfiles, CI configs, .nvmrc and hosting settings, not just your laptop.
  • Test your GitHub Actions with the Node 24 flag before GitHub flips the default.