Skip to content

Upgrade GitHub Actions for Node 24 compatibility#865

Open
salmanmkc wants to merge 1 commit intogoogle:devfrom
salmanmkc:upgrade-github-actions-node24
Open

Upgrade GitHub Actions for Node 24 compatibility#865
salmanmkc wants to merge 1 commit intogoogle:devfrom
salmanmkc:upgrade-github-actions-node24

Conversation

@salmanmkc
Copy link

@salmanmkc salmanmkc commented Mar 11, 2026

Warning

You may currently be seeing a warning like this in your workflow runs:

Node.js 20 actions are deprecated. The following actions are running on Node.js 20
and may not work as expected: actions/checkout@v4, actions/upload-artifact@v4, actions/[email protected], actions/[email protected].
Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026.
Please check if updated versions of these actions are available that support Node.js 24.
To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment
variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you
can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true.
For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

The exact actions listed will vary per workflow.

Upgrades GitHub Actions to versions that support Node 24, since Node 20 is reaching EOL in April 2026.

Changes

Action Old Version(s) New Version Release Files
actions/cache d4323d4 cdf6c1f Release build.yml
actions/checkout 8ade135, v4 v6 Release build.yml
actions/upload-artifact v4 v7 Release build.yml

Context

Per GitHub's announcement, Node 20 is being deprecated and runners will default to Node 24 starting June 2nd, 2026.

  • Node 20 EOL: April 2026
  • Node 24 becomes default: June 2nd, 2026

Breaking Changes

  • actions/checkout (v4 → v6): Major version upgrade — review the release notes for breaking changes
  • actions/upload-artifact (v4 → v7): Major version upgrade — review the release notes for breaking changes
  • actions/cache (v4.2.2 → v5): Major version upgrade — review the release notes for breaking changes

Notes

Actions that were previously pinned to commit SHAs remain pinned to SHAs (updated to the latest release SHA).

Worth running the workflows on a branch before merging to make sure everything still works.

@jan-wassenberg
Copy link
Member

Thanks for updating! We are unable to merge directly into main, please retarget to dev branch.

@salmanmkc salmanmkc changed the base branch from main to dev March 11, 2026 11:29
@salmanmkc salmanmkc force-pushed the upgrade-github-actions-node24 branch from 0a2d5c0 to 37443d4 Compare March 11, 2026 11:42
@salmanmkc
Copy link
Author

Thanks for updating! We are unable to merge directly into main, please retarget to dev branch.

My pleasure, thanks for the fast review, done! I did it based on the default branch, should that be updated on this repo or is it okay how it is?

jan-wassenberg
jan-wassenberg previously approved these changes Mar 11, 2026
@jan-wassenberg
Copy link
Member

Thanks for updating!
hm, my understanding is that the default branch is what we get when cloning (main is good for that, safer than dev), but also what pull requests target - for that we'd like dev. It's not possible to separate the two, right?

@salmanmkc salmanmkc force-pushed the upgrade-github-actions-node24 branch 2 times, most recently from 6e4f6fc to 9772586 Compare March 11, 2026 21:48
Signed-off-by: Salman Muin Kayser Chishti <[email protected]>
@salmanmkc salmanmkc force-pushed the upgrade-github-actions-node24 branch from 9772586 to 7b69328 Compare March 11, 2026 23:00
Copy link
Member

@jan-wassenberg jan-wassenberg left a comment

Choose a reason for hiding this comment

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

LGTM but the UI reports there are conflicts?

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.

2 participants