Skip to content

Opt into Node.js 24 for JavaScript actions#104

Merged
GromNaN merged 3 commits into
mongodb-labs:mainfrom
GromNaN:force-node24-actions
May 13, 2026
Merged

Opt into Node.js 24 for JavaScript actions#104
GromNaN merged 3 commits into
mongodb-labs:mainfrom
GromNaN:force-node24-actions

Conversation

@GromNaN
Copy link
Copy Markdown
Collaborator

@GromNaN GromNaN commented May 7, 2026

Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true at the workflow level in all 5 workflows.

GitHub Actions runners emit the following warning on current workflows:

Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-python@v5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026.

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.

https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

This opts in early to validate there are no compatibility issues before the forced migration.

Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true in all workflows to validate
compatibility before GitHub forces Node 24 as default on June 2nd, 2026
(Node 20 removal scheduled September 16th, 2026).
@GromNaN GromNaN requested review from alcaeus and blink1073 and removed request for blink1073 May 7, 2026 13:03
GromNaN added 2 commits May 7, 2026 15:06
Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true on each step that calls an
external JavaScript action, so the opt-in applies when these composite
actions are called from workflows that don't set the variable themselves.
The GitHub Actions schema requires env values to be strings. YAML parses
bare `true` as a boolean, causing schema validation failures. Use `"true"`
instead.
@GromNaN
Copy link
Copy Markdown
Collaborator Author

GromNaN commented May 7, 2026

Alternatively, we can also do nothing. If anything is broken on June 2nd, 2026 add ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true

Copy link
Copy Markdown
Collaborator

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

Alternatively, we can also do nothing. If anything is broken on June 2nd, 2026

Let's break things now so we can fix them.

@GromNaN GromNaN merged commit 8bcaf8d into mongodb-labs:main May 13, 2026
6 checks passed
@GromNaN GromNaN deleted the force-node24-actions branch May 13, 2026 13:06
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