Skip to content

[All OS] Default Node.js version changed from 20 to 22. Node.js 20 removed - #14046

Merged
v-AndriiKhyliuk merged 3 commits into
actions:mainfrom
v-GeorgyPuzakov:13833
May 18, 2026
Merged

[All OS] Default Node.js version changed from 20 to 22. Node.js 20 removed#14046
v-AndriiKhyliuk merged 3 commits into
actions:mainfrom
v-GeorgyPuzakov:13833

Conversation

@v-GeorgyPuzakov

Copy link
Copy Markdown
Contributor

Description

Improvement / Bug fixing

Remove Node.js 20 from all runner images and update the default Node.js version to 22 on images where Node.js 20 was the default.

Node.js 20 reached end-of-life on April 30, 2026. This change:

  • Removes 20.* from the toolcache versions list in all toolset JSON files across Ubuntu, macOS, and Windows images
  • Updates the default Node.js version from 20 to 22 on images where Node.js 20 was the default (ubuntu-22.04, ubuntu-24.04, macos-14, windows-2022)
  • Images that already had Node.js 22 or 24 as the default are not affected (only 20.* removed from toolcache)

After this change, only Node.js 22 and 24 remain pre-installed in the toolcache.

Image Previous default New default
ubuntu-22.04 20 22
ubuntu-24.04 20 22
ubuntu-slim 24 24 (unchanged)
macos-14 20 22
macos-15 22 22 (unchanged)
macos-26 24 24 (unchanged)
windows-2022 20 22
windows-2025 22 22 (unchanged)
windows-2025-vs2026 22 22 (unchanged)
windows-11-arm64 24 24 (unchanged)

Related issue:

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

Copilot AI review requested due to automatic review settings May 13, 2026 17:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates runner image toolsets to remove Node.js 20 from preinstalled toolcache versions and move affected defaults from Node.js 20 to Node.js 22.

Changes:

  • Removes 20.* from Node.js toolcache entries across Windows, Ubuntu, and macOS toolsets.
  • Updates Node.js default from 20/20.* to 22/22.* for Ubuntu 22.04, Ubuntu 24.04, macOS 14, and Windows 2022.
  • Leaves images already defaulting to Node.js 22 or 24 unchanged except for removing Node.js 20 from toolcache lists.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
images/windows/toolsets/toolset-win-11-vs2026-arm64.json Removes Node.js 20 from Windows 11 Arm64 VS2026 toolcache.
images/windows/toolsets/toolset-win-11-arm64.json Removes Node.js 20 from Windows 11 Arm64 toolcache.
images/windows/toolsets/toolset-2025.json Removes Node.js 20 from Windows 2025 toolcache.
images/windows/toolsets/toolset-2025-vs2026.json Removes Node.js 20 from Windows 2025 VS2026 toolcache.
images/windows/toolsets/toolset-2022.json Removes Node.js 20 from toolcache and changes Windows 2022 default to Node.js 22.
images/ubuntu/toolsets/toolset-2404.json Removes Node.js 20 from toolcache and changes Ubuntu 24.04 default to Node.js 22.
images/ubuntu/toolsets/toolset-2204.json Removes Node.js 20 from toolcache and changes Ubuntu 22.04 default to Node.js 22.
images/macos/toolsets/toolset-26.json Removes Node.js 20 from macOS 26 x64 and arm64 toolcache lists.
images/macos/toolsets/toolset-15.json Removes Node.js 20 from macOS 15 x64 and arm64 toolcache lists.
images/macos/toolsets/toolset-14.json Removes Node.js 20 from toolcache and changes macOS 14 default to Node.js 22.

Comment thread images/ubuntu/toolsets/toolset-2404.json
@v-GeorgyPuzakov v-GeorgyPuzakov changed the title [All OS] Default Node.js version will be changed from 20 to 22 and Node.js 20 will be removed from runner images [All OS] Default Node.js version changed from 20 to 22. Node.js 20 removed May 18, 2026
@v-AndriiKhyliuk
v-AndriiKhyliuk merged commit 2495626 into actions:main May 18, 2026
3 of 4 checks passed
dwydler added a commit to wydler/runner-images-hetzner-cloud that referenced this pull request May 21, 2026
…moved (actions#14046) (#322)

* Remove Node.js 20 (EOL 2026-04-30), update default to 22
* Remove Node.js 20 from Ubuntu 26.04 toolcache
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.

4 participants