Skip to content

Commit 178f9a6

Browse files
A.R.claude
andcommitted
chore(ci): opt JS actions into Node 24 ahead of June 2026 default
GitHub deprecated Node 20 as the JavaScript-actions runtime on 2025-09-19 and will force Node 24 as the default starting 2026-06-02. Until then, the runner emits a deprecation warning for every workflow run that uses actions/checkout@v4 + actions/setup-node@v4 (i.e., every CI + release run). Setting FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true at the workflow env level opts in early — silences the warning today and ensures we're on the runtime GitHub is migrating us to anyway. Reference: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ Applied to both ci.yml and release.yml — the deprecation warning appears on every job in both workflows. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b51af9e commit 178f9a6

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ env:
1111
# build (70+ entry points + DTS emission). Lift the cap to 4GB; both
1212
# ubuntu-latest and windows-latest runners have ~7GB RAM available.
1313
NODE_OPTIONS: "--max-old-space-size=4096"
14+
# Opt into Node 24 for GitHub-shipped JS actions (checkout, setup-node, …)
15+
# ahead of the June 2nd 2026 default. Silences the deprecation warning and
16+
# ensures we're on the runtime GitHub is migrating to.
17+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
1418

1519
jobs:
1620
build-and-test:

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ env:
2323
# tsup's --dts worker hits Node's default ~2GB heap during the mcp-server
2424
# build (70+ entry points + DTS emission). Lift the cap to 4GB.
2525
NODE_OPTIONS: "--max-old-space-size=4096"
26+
# Opt into Node 24 for GitHub-shipped JS actions (checkout, setup-node, …)
27+
# ahead of the June 2nd 2026 default. Silences the deprecation warning and
28+
# ensures we're on the runtime GitHub is migrating to.
29+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
2630

2731
permissions:
2832
contents: write

0 commit comments

Comments
 (0)