Skip to content

fix(ci): add Node.js 22 — Astro 5 requires >=22.12.0#39

Merged
jonathanperis merged 1 commit into
mainfrom
fix/node22-ci
Apr 18, 2026
Merged

fix(ci): add Node.js 22 — Astro 5 requires >=22.12.0#39
jonathanperis merged 1 commit into
mainfrom
fix/node22-ci

Conversation

@jonathanperis
Copy link
Copy Markdown
Owner

Summary

  • Add actions/setup-node@v4 (Node 22) to build-check.yml and main-release.yml
  • Astro 5 hard-errors on Node < 22.12.0; GH runner default is Node 20.20.2

Root Cause

After the Next.js → Astro 5 migration, CI started failing with:

Node.js v20.20.2 is not supported by Astro!
Please upgrade Node.js to a supported version: ">=22.12.0"

The oven-sh/setup-bun action installs Bun but does not upgrade the system Node.js. Astro's build CLI detects and rejects the runner-default Node 20.

Fix

Add actions/setup-node@v4 with node-version: '22' before the Bun setup step in both workflows.

Test plan

  • Build Check passes on this PR
  • Merge triggers Main Release → site deploys successfully

🤖 Generated with Claude Code

Runner default is Node 20; Astro 5 hard-errors on unsupported versions.
Add actions/setup-node@v4 before bun setup in both workflows.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jonathanperis jonathanperis merged commit 8483d9d into main Apr 18, 2026
3 checks passed
@jonathanperis jonathanperis deleted the fix/node22-ci branch April 18, 2026 14:45
@jonathanperis jonathanperis restored the fix/node22-ci branch May 2, 2026 17:42
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.

1 participant