Skip to content

Conversation

@salmanmkc
Copy link

Summary

Upgrade GitHub Actions to their latest versions to ensure compatibility with Node 24, as Node 20 will reach end-of-life in April 2026.

Changes

Action Old Version(s) New Version Release Files
actions/cache v4 v5 Release ensure-node-modules-cache.yml
actions/checkout v4 v6 Release npm-package.yml
actions/setup-node v4 v6 Release npm-package.yml
actions/upload-artifact v5 v6 Release pr.yml

Context

Per GitHub's announcement, Node 20 is being deprecated and runners will begin using Node 24 by default starting March 4th, 2026.

Why this matters

  • Node 20 EOL: April 2026
  • Node 24 default: March 4th, 2026
  • Action: Update to latest action versions that support Node 24

Security Note

Actions that were previously pinned to commit SHAs remain pinned to SHAs (updated to the latest release SHA) to maintain the security benefits of immutable references.

Testing

These changes only affect CI/CD workflow configurations and should not impact application functionality. The workflows should be tested by running them on a branch before merging.

Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
Copilot AI review requested due to automatic review settings January 25, 2026 00:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates GitHub Actions workflow dependencies to newer major versions to maintain compatibility as GitHub Actions runners transition from Node 20 to Node 24.

Changes:

  • Bump actions/upload-artifact from v5 to v6 in the PR checks workflow.
  • Bump actions/checkout and actions/setup-node from v4 to v6 in the npm package workflow.
  • Bump actions/cache from v4 to v5 in the node modules cache workflow.

Reviewed changes

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

File Description
.github/workflows/pr.yml Upgrades artifact upload action to v6 for Node 24 compatibility.
.github/workflows/npm-package.yml Upgrades checkout and Node setup actions to v6.
.github/workflows/ensure-node-modules-cache.yml Upgrades cache action to v5 on Linux and Windows jobs.

Comment on lines 155 to 159
- name: Upload simulation output
if: always()
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v6
with:
name: simulation-output-linux-${{ github.run_attempt }}
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

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

This PR targets Node 24 runner compatibility, but this workflow still uses actions/cache/restore@v4 earlier in the file (e.g., around lines 31/101/191). That appears inconsistent with the upgrade goal and could leave this workflow relying on an action major that may not be Node 24 compatible. Consider upgrading those cache steps to the corresponding v5 action(s) as well, or clarify in the PR description why they are intentionally left on v4.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants