Upgrade action runtime to Node 24 #670
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR upgrades the GitHub Action runtime from Node 20 to Node 24, following the deprecation timeline outlined in actions/runner#3600.
Changes
Runtime & Requirements
runs.using
fromnode20
tonode24
engines
field requiring Node >=24Type Definitions & Dependencies
^20.19.19
to^22
(resolves to v22.18.8)@types/node >=22.0.0
to enable automatic updates for Node 22+ type definitionsCompatibility Fix
{ type: 'bytes' }
parameter fromreadableWebStream()
call to align with Node.js 22+ type definitions. The API behavior remains unchanged.Documentation
Testing
All existing tests pass:
Validation
.tool-versions
file already specifiednodejs 24.2.0
.github/workflows/main.yml
) already runs onubuntu-24.04
and uses.tool-versions
tsconfig.json
) withtarget: "es2022"
is compatible with Node 24This upgrade ensures the action continues to work seamlessly as GitHub Actions phases out Node 20 support.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.