Skip to content

Moving Node.js CI to Ubuntu 26.04 on GitHub Actions

ubuntu-latest moves to Ubuntu 26.04 by November 19. The image swaps default Node 22 for 24 and npm 10 for 11. What breaks, plus a timing test.

· · 9 min read

Updated: November 27, 2026

Table of default Node, npm, Python, OpenSSL and Bash versions on ubuntu-24.04 and ubuntu-26.04

Quick Take

GitHub is moving ubuntu-latest to Ubuntu 26.04 in a gradual rollout between October 19 and November 19, 2026. The new image puts Node.js 24.22.2 on PATH where the old one has 22.23.4, and npm 11 where it had npm 10. Python jumps from 3.12 to 3.14 and OpenSSL from 3.0 to 3.5. A workflow that never calls setup-node changes Node major version without a single edit. Pin Node, add 26.04 as an extra matrix leg, and print the toolchain versions so a red build tells you why.

Changing one word in a workflow file feels harmless. runs-on: ubuntu-24.04 becomes runs-on: ubuntu-26.04, and you've swapped the operating system under every build step you own.

I haven't run a production pipeline on a hosted 26.04 runner, so nothing here is a hosted-runner benchmark. What I did: read the contents lists GitHub publishes for both images (first read on October 30, 2026 and re-checked on November 7, 2026 against image versions 20261101.186.1 for 26.04 and 20261101.360.1 for 24.04), diffed the parts that matter to a Node.js project, and then timed the same install, compile, type-check and test steps in Ubuntu 24.04 and 26.04 containers on my own machine. The versions below are quoted from those lists, and image contents change weekly, so recheck before you rely on a number.

Is ubuntu-26.04 ready to use for CI?

Yes. The labels are ubuntu-26.04 for x64 and ubuntu-26.04-arm for Arm64. GitHub announced the image as a public preview on June 11, 2026, then declared it generally available on September 17, 2026, "fully supported for production workflows" on both architectures. The preview warnings about longer queue times no longer apply to a GA image.

The bigger news is ubuntu-latest. The same changelog says the label moves from Ubuntu 24.04 to 26.04 in a gradual rollout between October 19 and November 19, 2026, and warns that the change "may break builds" that rely on tools or versions that differ. On November 7 the runner-images README still listed ubuntu-latest on the 24.04 row. On November 27 it lists the label on the 26.04 row, so if your workflows say ubuntu-latest, assume they run on the new image now. During the window a given run could presumably land on either one. I can't see GitHub's rollout schedule, so that part is my reading of the word "gradual", not something I observed.

The official way out is the one-line pin: runs-on: ubuntu-24.04 keeps the old image.

Ubuntu 26.04 LTS itself came out on April 23, 2026, with standard support to May 2031. The only open question is when you switch.

Image contents: 24.04 against 26.04

Here's the table I'd tape to the monitor. All values come from the two image readmes named above, as of image versions 20261101.360.1 (24.04) and 20261101.186.1 (26.04), read on November 7, 2026.

Itemubuntu-24.04ubuntu-26.04
Default node on PATH22.23.424.22.2
Cached Node versions22.23.4, 24.22.222.23.4, 24.22.2
npm10.9.911.19.1
Python3.12.33.14.4
OpenSSL (system)3.0.133.5.5
Bash5.2.215.3.9
Docker client28.0.429.4.2
Docker Compose2.38.25.1.3
Podman4.9.35.7.0
g++ (apt package)13.2.015.2.0
Default Java17.0.2125.0.5
Yarn (classic)1.22.221.22.22
Git2.56.02.56.0

Three rows deserve a second look. The cached Node versions are identical, so anything that calls actions/setup-node with an explicit version behaves the same on both. The default node on PATH is not identical, and neither is the npm that comes with it, which is the trap. The Java row is a loose end: GitHub's GA announcement says the default stays on Java 17 for both images, but the 26.04 readme I read lists 25.0.5 as the default, so if a build step shells out to java, set JAVA_HOME yourself. The kernel builds are close but not identical in the November 1 readmes (7.0.0-1017-azure on 24.04, 7.0.0-1019-azure on 26.04), so the kernel is an unlikely suspect, though not a ruled-out one.

The default Node version

Plenty of workflows never install Node at all. They call npm ci and rely on whatever the image ships. On 24.04 that's Node 22 with npm 10. On 26.04 it's Node 24 with npm 11. You haven't touched your package.json, yet your CI now runs a different major version, with a different V8, different require(esm) behavior, different deprecations and a different npm. If a build goes red after the label change, this is the first suspect.

Never let a CI image decide your Node version for you: the line that says which runtime your tests ran on belongs in your repository, not in someone else's runner changelog.

Share this Post on X Bluesky

The fix is one step, and it costs about a second when the version is cached:

- uses: actions/checkout@v7
- uses: actions/setup-node@v7
  with:
    node-version-file: .nvmrc
    cache: npm
- run: node --version && npm --version && python3 --version && openssl version
- run: npm ci
- run: npm test

The node --version line looks pointless until the same job is green on one image and red on another. Then that single log line is usually the whole diagnosis, and it saves you from scrolling through installation noise. I would add it to every workflow.

If your project is still on Node 20, the Node.js 20 to 24 migration guide covers what breaks at the language level, and our Node.js 24.19.0 notes cover one of the releases in the 24.x line these images carry.

Python, the compiler and native addons

Pure JavaScript projects mostly won't notice. Projects with native addons might.

Node's own binaries bundle their own OpenSSL, so the system OpenSSL jump from 3.0 to 3.5 matters mainly to native modules linked against the system library and to anything shelling out to openssl or curl. The part more likely to bite is node-gyp. It uses Python and the system C++ compiler to build addons that don't ship prebuilt binaries, and the 26.04 image moves Python from 3.12.3 to 3.14.4 and ships g++ 15.2. An older addon that compiled quietly on a 2024-era toolchain can fail on a 2026 one. I haven't hit that on this image, so I can't name a package. I just know which step to look at: npm ci or npm rebuild, in the logs, before any test runs.

Docker is the other place to look. Compose went from 2.38.2 to 5.1.3 across the two images, a jump in major version number, so a workflow that parses docker compose output or relies on an older flag deserves a dry run.

Build speed on 26.04, measured in containers

I wanted a number, so I measured one, with limits I'll spell out. This is my own measurement, and the script and raw logs aren't published with the article, so treat the table as one machine's data point, not a benchmark you can audit. I ran the same four steps in ubuntu:24.04 and ubuntu:26.04 containers on my own Mac, not on hosted runners. Docker Desktop 28.5.1, Apple silicon (aarch64), 8 CPUs and 15.6 GiB given to the VM. Both containers used the identical official Node.js 24.22.1 tarball, so the language runtime wasn't a variable. What did differ is the userland the runner images also differ in: g++ 13.3.0 against 15.2.0, Python 3.12.3 against 3.14.4, OpenSSL 3.0.13 against 3.5.5, glibc 2.39 against 2.43. The kernel was the same for both, because containers share the VM's (6.10.14-linuxkit), so a kernel effect is outside this test.

The workload: a lockfile with 173 packages (TypeScript 5.9.3, Vitest 3.2.4, esbuild, Prettier, better-sqlite3 12.4.1), plus 400 generated TypeScript modules and 400 matching test files, 1,200 tests in all. Each round ran npm ci, a forced from-source compile of better-sqlite3 through node-gyp, tsc --noEmit, and vitest run. I filled the npm cache and the node-gyp headers in an untimed first pass, so npm ci shows disk and CPU, not registry speed. Five rounds per container, four containers in the order 24.04, 26.04, 26.04, 24.04 to cancel drift, so ten rounds per image. Medians:

Stepubuntu:24.04ubuntu:26.04Range overlap?
npm ci (cached, no scripts)0.97 s0.80 syes
Native addon compile (node-gyp)59.9 s47.1 sno
tsc --noEmit1.60 s1.57 syes
vitest run (1,200 tests)17.1 s19.7 syes

Only one row is a real difference. The native compile was about 21 percent faster on 26.04, and the ranges don't even touch: the slowest 26.04 round (52.5 s) beat the fastest 24.04 round (53.7 s). I can't tell you why. A newer compiler is the obvious suspect, and that's a guess, not a finding. The install and type-check rows are noise. Vitest came out 15 percent slower on 26.04 by median, but the rounds overlap heavily and one 26.04 round hit 33 s on a machine I was also using for other work, so I wouldn't read anything into it.

What this doesn't tell you is how a hosted runner behaves. Hosted x64 runners have different core counts and disks, a cold cache, and a queue. I measured none of that. If your pipeline compiles native addons on every run, expect a modest gain at best, and measure your own job: the matrix leg below will give you the number for free.

Testing the switch on an experimental matrix leg

Add the new OS as an extra matrix leg that is allowed to fail, then promote it once it's been green for two weeks.

jobs:
  test:
    runs-on: ${{ matrix.os }}
    continue-on-error: ${{ matrix.experimental }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-24.04]
        node: [22, 24]
        experimental: [false]
        include:
          - os: ubuntu-26.04
            node: 24
            experimental: true
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: ${{ matrix.node }}
          cache: npm
      - run: node --version && python3 --version
      - run: npm ci
      - run: npm test

fail-fast: false keeps one red leg from cancelling the others, and continue-on-error stops the experimental leg from blocking merges. Two weeks of green on the extra leg is a decent bar. Then flip experimental to false and drop the old OS when you're ready.

Watch out for one thing: a required status check is matched by job name. Renaming or reshaping the matrix changes the names, and a required check that never reports leaves a pull request stuck. Change the branch protection rule in the same sitting as the workflow.

The same approach works for the type-check job in our TypeScript 7 CI guide. It's a short job, so the experimental leg costs almost nothing.

When to move

My view: pin first, then move on your own schedule. If your workflows say ubuntu-latest, the deadline has passed: GitHub's rollout window closed on November 19, 2026, and the README now puts the label on 26.04. There are two ways out. Pin ubuntu-24.04 today and migrate when you've tested, or stay on the new image with Node pinned and keep a 24.04 leg beside it until the pipeline is proven. Either beats finding out from a red main branch. The default-Node change is silent, and the cheapest day to discover it is a day when nothing else is broken.

Ready to try it? Pin Node, print the versions, add one experimental leg. Then read the logs of that first run before anything else. If it comes back green on the first try, you've lost ten minutes. If it doesn't, you've found out on your terms.

Frequently Asked Questions

Does ubuntu-latest point to Ubuntu 26.04 yet?
Yes, going by the runner-images README: on November 27, 2026 it lists ubuntu-latest on the Ubuntu 26.04 row. GitHub's September 17, 2026 changelog scheduled the move from 24.04 as a gradual rollout between October 19 and November 19, 2026, and on November 7 the README still showed the label on the 24.04 row. Print the OS and Node versions in the job log to confirm which image a run got.
Which Node.js version does the ubuntu-26.04 runner use by default?
Node.js 24.22.2, according to the Ubuntu 26.04 image readme (image version 20261101.186.1). The ubuntu-24.04 image (20261101.360.1) lists Node.js 22.23.4 as its default. Both images cache Node 22.23.4 and 24.22.2 for setup-node, so an explicit version works the same on either.
Will actions/setup-node still work on ubuntu-26.04?
It should, since the image carries cached Node 22 and 24 builds and setup-node downloads other versions on demand. I haven't run a workflow on a hosted 26.04 runner, only the same steps in a container, so verify with a matrix leg before you switch a required check.
Do I need to change anything for native npm modules?
Possibly. The 26.04 image has GCC 15.2 and Python 3.14.4 for node-gyp, against Python 3.12.3 on 24.04. Packages that compile on install can break on a newer compiler or Python even when the JavaScript is untouched. A test install on a 26.04 matrix leg shows it before it matters. In my container test, compiling better-sqlite3 from source worked on both images.