Skip to content

Commit c8f9dcd

Browse files
Opt into Node.js 24 for JavaScript GitHub Actions
Sets FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true at the workflow env level so all JavaScript-based actions (actions/checkout, actions/setup-dotnet, actions/upload-artifact, actions/download-artifact, softprops/action-gh-release) run under Node 24 instead of the deprecated Node 20 runtime. GitHub is auto-migrating JavaScript actions to Node 24 as the default on June 2, 2026 and removing the Node 20 runner entirely on September 16, 2026. Opting in now: - Removes the deprecation warnings from the most recent release runs. - Surfaces any Node 24 compatibility issues while there's still time to downgrade via ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. - No action version bumps needed — the flag reuses the existing v4/v2 pins, which continue working under Node 24. The inline comment documents the Jun 2 -> Sep 16 fallback escape hatch window explicitly (ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION only works while the Node 20 runtime is still installed on the runner; after Sep 16, 2026 there is no runtime to fall back to). The flag itself becomes redundant on June 2 and should be removed then.
1 parent 1fbf415 commit c8f9dcd

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ permissions:
1212

1313
env:
1414
DOTNET_VERSION: '10.0.x'
15+
# Opt into Node.js 24 for JavaScript actions ahead of the June 2, 2026 forced
16+
# migration. Removes the deprecation warnings from actions/checkout,
17+
# setup-dotnet, upload-artifact, download-artifact, and action-gh-release.
18+
#
19+
# Escape hatch: between June 2, 2026 (when Node 24 becomes the default) and
20+
# September 16, 2026 (when Node 20 is removed from the runner), setting
21+
# ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true can force a fallback to
22+
# Node 20 if a compatibility issue surfaces. After September 16, 2026 the
23+
# fallback is no longer possible — the Node 20 runtime is gone.
24+
#
25+
# This flag becomes redundant on June 2, 2026 and should be removed then.
26+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
1527

1628
jobs:
1729
build:

0 commit comments

Comments
 (0)