Skip to content

Upgrade Node.js runtime to v24#410

Open
JohnTitor wants to merge 2 commits intocloudflare:mainfrom
JohnTitor:nodejs-24
Open

Upgrade Node.js runtime to v24#410
JohnTitor wants to merge 2 commits intocloudflare:mainfrom
JohnTitor:nodejs-24

Conversation

@JohnTitor
Copy link
Copy Markdown

The Node.js v20 runtime has been deprecated: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
This suppresses the warning on users.

@JohnTitor JohnTitor requested review from a team as code owners March 18, 2026 04:44
@kirkouimet
Copy link
Copy Markdown

@JohnTitor thank you!

Comment thread .changeset/wicked-donuts-fold.md Outdated
@@ -0,0 +1,5 @@
---
"wrangler-action": major
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This can be a patch since this release is the current active version of Node:

https://nodejs.org/en/about/previous-releases

See https://developers.cloudflare.com/workers/wrangler/install-and-update/ for supported versions (which technically includes 20, but this should target the current lts that's 25)

Suggested change
"wrangler-action": major
"wrangler-action": patch

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@ericclemmons Well, note that it's a technically breaking change on GitHub Actions as it bumps minimum runner version requirement. It's not something about Node.js itself or wrangler at all.
In GHA, such changes are customarily treated as breaking changes, e.g. https://github.com/actions/checkout/releases/tag/v5.0.0

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

But yeah, it's up to maintainers to decide whether treating it as breaking or not. I'll follow your way.

This version should target the current active LTS (24) for wrangler-acton's glue code.  `npx wrangler` will execute what's in `$PATH`.
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.

3 participants