Skip to content

Update action runtime to Node 24 and refresh CI to actions/checkout@v5#137

Merged
Bala-Nallamilli merged 2 commits intov2from
bn/node24-and-checkout-v5
Apr 22, 2026
Merged

Update action runtime to Node 24 and refresh CI to actions/checkout@v5#137
Bala-Nallamilli merged 2 commits intov2from
bn/node24-and-checkout-v5

Conversation

@Bala-Nallamilli
Copy link
Copy Markdown
Member

@Bala-Nallamilli Bala-Nallamilli commented Apr 21, 2026

Summary

GitHub Actions is deprecating Node 20 for JavaScript actions and will switch the
default to Node 24 on June 2, 2026 (Node 20 removed Sep 16, 2026):
https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

This PR moves digitalocean/action-doctl to Node 24 today so customers stop
seeing the deprecation warning in their pipelines. Builds on the work in
#124 by @lgrosales — opening a fresh PR rather than rebasing #124 onto the
recent v2 HEAD so we can also include the matching CI cleanup.

Changes

  1. action.yml: runs.using node20node24
  2. .github/workflows/workflow.yml: actions/checkout@v4@v5 (×6) — removes
    the matching deprecation warning from our own CI annotations. Internal only,
    no consumer impact.

warning message -
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 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/

Why now (not waiting for June 2)

GitHub-hosted runners already accept using: node24 today as opt-in — the
June 2 date is when it becomes the default. Confirmed end-to-end on a
temporary test branch (test/esc-22321-node24-manifest):

Test Setup Workflow Deprecation warnings Runtime
Baseline using: node20, checkout@v4 success action-doctl + checkout listed
Test 1 using: node24, checkout@v4 success only checkout (action-doctl gone)
Test 2 using: node24, checkout@v5 success 0
Test 3 + runtime probe success 0 Node v24.14.1 confirmed on Linux + macOS + Windows

Tool-cache probe confirmed the Node 24 binary is present on every hosted
runner (/opt/hostedtoolcache/node/24.14.1/x64/bin/node on Linux,
equivalents on macOS/Windows), proving the runner genuinely interprets
using: node24 actions on Node 24, not a Node 20 fallback.

Test plan

  • CI green on this branch (12/12 jobs across ubuntu/macos/windows)
  • No deprecation warnings emitted by this action when consumed
  • Reviewer to confirm tag/release plan post-merge

Out of scope

  • Pre-existing macOS rate-limit warning from getLatestRelease Octokit call
    in main.js — fix should be a follow-up PR adding auth: process.env.GITHUB_TOKEN
    to the Octokit constructor.

Copy link
Copy Markdown
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 the GitHub Action runtime and CI dependencies to align with GitHub Actions’ upcoming Node 24 default and remove Node 20 deprecation warnings.

Changes:

  • Switch action.yml runtime from node20 to node24.
  • Update CI workflows to use actions/checkout@v5 (replacing @v4) across all jobs.

Reviewed changes

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

File Description
action.yml Updates the action runtime to Node 24 to avoid Node 20 deprecation warnings for consumers.
.github/workflows/workflow.yml Refreshes CI checkout steps to actions/checkout@v5 to remove deprecation warnings in internal CI.

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

Comment thread .github/workflows/workflow.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Member Author

@Bala-Nallamilli Bala-Nallamilli left a comment

Choose a reason for hiding this comment

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

done

@Bala-Nallamilli
Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

…de24 + checkout@v5

Co-authored-by: Bala-Nallamilli <30488711+Bala-Nallamilli@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 22, 2026

@copilot resolve the merge conflicts in this pull request

Resolved in 64965f7. The base v2 branch had reverted the node24 and checkout@v5 changes, causing conflicts. Merged v2 into the PR branch and kept our desired changes: action.yml stays on node24, all actions/checkout@v4 references updated to @v5, and the typo fix ("commited" → "committed") is preserved.

Copy link
Copy Markdown
Contributor

@DO-rrao DO-rrao left a comment

Choose a reason for hiding this comment

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

lgtm

@Bala-Nallamilli Bala-Nallamilli merged commit 3cb3953 into v2 Apr 22, 2026
27 checks passed
@0xNeoDev
Copy link
Copy Markdown

thank you!

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.

5 participants