Skip to content

ci: upgrade GitHub Actions to Node 24-compatible versions#64

Merged
overtrue merged 1 commit intomainfrom
codex/upgrade-github-actions-node24
Mar 20, 2026
Merged

ci: upgrade GitHub Actions to Node 24-compatible versions#64
overtrue merged 1 commit intomainfrom
codex/upgrade-github-actions-node24

Conversation

@overtrue
Copy link
Contributor

Summary

GitHub Actions is deprecating Node.js 20 on hosted runners, and this repository still had a few workflow steps pinned to action majors that run on Node 20 by default. That already produces deprecation warnings today and creates risk for the release and Docker publishing paths once GitHub switches JavaScript actions to Node 24 by default.

This change upgrades the remaining affected workflow steps to majors that officially support Node 24 so the repository is aligned with GitHub's migration timeline before the default runtime flips in June 2026.

Root Cause

Most workflows in this repository had already moved to actions/checkout@v6, but the release and Docker workflows still referenced older majors:

  • actions/checkout@v4 in the release and Docker workflows
  • actions/upload-artifact@v4 in the release workflow
  • actions/download-artifact@v4 in the release workflow

Those versions are the source of the current Node 20 deprecation warnings.

Solution

This PR updates the affected workflow steps without changing the release flow itself:

  • Upgrade the remaining actions/checkout usages from v4 to v6
  • Upgrade actions/upload-artifact from v4 to v6
  • Upgrade actions/download-artifact from v4 to v7

The artifact download action was moved to the smallest Node 24-compatible major so the upload/download path stays aligned while avoiding a larger jump to newer behavior changes that are not needed for this fix.

User Impact

This removes the current deprecation warnings in the affected workflows and reduces the chance of release or Docker automation regressions when GitHub starts defaulting JavaScript actions to Node 24.

Validation

I ran the repository's required checks before committing:

  • cargo fmt --all --check
  • cargo clippy --workspace -- -D warnings
  • cargo test --workspace

I also verified that the edited workflow files still parse as valid YAML after the version updates.

@overtrue overtrue marked this pull request as ready for review March 20, 2026 15:53
Copilot AI review requested due to automatic review settings March 20, 2026 15:53
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 Node 24–compatible major versions, removing Node 20 deprecation warnings and reducing risk of CI/CD breakage when GitHub-hosted runners switch default JavaScript action runtimes.

Changes:

  • Bump actions/checkout from v4 to v6 in release and Docker workflows.
  • Bump actions/upload-artifact from v4 to v6 in the release workflow.
  • Bump actions/download-artifact from v4 to v7 in the release workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/release.yml Upgrades checkout + artifact upload/download action majors to Node 24–compatible versions for the release pipeline.
.github/workflows/docker.yml Upgrades checkout action major to Node 24–compatible version for the Docker build/publish pipeline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@overtrue overtrue merged commit 18403ab into main Mar 20, 2026
19 checks passed
@overtrue overtrue deleted the codex/upgrade-github-actions-node24 branch March 20, 2026 15:55
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