fix(ci): install Node 24 in docs deploy to satisfy wrangler 4#541
Merged
Conversation
The Deploy Docs workflow has been failing on `cloudflare/wrangler-action@v4.0.0` with: Wrangler requires at least Node.js v22.0.0. You are using v20.20.2. The action installs `wrangler@4` via bun and then verifies it with `bun run wrangler --version`. That verification shells out to system Node, and wrangler 4 requires Node ≥ 22 — but `ubuntu-latest` still ships Node 20.x as the default. Adding `actions/setup-node@v5` before the wrangler step pins the system Node on PATH to the current Active LTS (24, EOL April 2028), which clears the floor and gives the longest support runway. No other workflows need the same change: action-bundled Node (from `actions/checkout`, `peter-evans/create-pull-request`, etc.) is independent of system Node, and `docs.yml` is the only workflow whose `run:` steps shell out to a Node-based CLI today. Fixes #539
This was referenced May 22, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
actions/setup-node@v5(Node 24) to.github/workflows/docs.ymlbefore thecloudflare/wrangler-action@v4.0.0step.Wrangler requires at least Node.js v22.0.0. You are using v20.20.2.Root cause
Not the action itself —
cloudflare/wrangler-action@v4.0.0installswrangler@4(currently 4.91.0) via bun and verifies it withbun run wrangler --version. That verification shells out to system Node onubuntu-latest(still 20.20.2). Wrangler 4 recently bumped its floor to Node 22 (Node 20 went EOL April 2026), so the check fails.The fix is to install a supported Node onto
$PATHbefore the wrangler step. Picked 24 because it's the current Active LTS (EOL April 2028) — 22 would work today but only has ~11 months of support left, so we'd be back here in spring 2027.Scope: why only
docs.ymlAudited every workflow's
uses:andrun:steps.setup-nodeonly matters when arun:step shells out to a Node-based CLI; GitHub-bundled Node inside actions likeactions/checkoutorpeter-evans/create-pull-requestis independent of system Node.docs.yml(via bun → wrangler) is the only workflow currently doing that.Test plan
Deploy Docsworkflow run succeeds end-to-end (push event triggers it via the.github/workflows/docs.ymlpath filter).Fixes #539
🤖 Generated with Claude Code