Commit 2374112
authored
chore(deps): drop Node 20 support, pin CI Node 24 for docs build (#817)
## Summary
Node 20 reached EOL in April 2026. This PR drops it from the supported
set and cleans up the Astro 6 engine-check workaround that #816 left in
place.
## Changes
### `package.json` — tighten engines
- `engines.node`: `>=22` → `>=22.12` (matches Astro 6 and reflects Node
20 EOL).
### `docs/package.json` — revert `bun --bun astro` workaround
- Scripts are back to plain `astro dev / build / preview`.
- #816 prefixed them with `bun --bun` only to route around the GHA
runner's Node 20 shipping below Astro 6's `engines.node: ">=22.12"`.
With a real Node pin in CI (below) and Node 24 locally, there's no
reason to keep it.
### Workflows — pin Node 24 for docs jobs
- `ci.yml` `Build Docs` and `docs-preview.yml` `preview` now both run
`actions/setup-node@v6` with `node-version: "24"` before the docs build.
- Dropped the `# works on Node < 22.12 …` comments.
### Unchanged
- `Build npm Package` CI matrix stays at `["22", "24"]`. Node 22 is
still LTS (EOL April 2027) and above the new 22.12 minimum.
- Other jobs already pinning `node-version: 22` (release workflows) are
fine as-is.
## Verification
```sh
cd docs && rm -rf node_modules && bun install --frozen-lockfile && bun run build
# 29 pages built in ~6s
```1 parent 6607eec commit 2374112
6 files changed
Lines changed: 20 additions & 13 deletions
File tree
- .github/workflows
- docs
- script
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
712 | 717 | | |
713 | 718 | | |
714 | 719 | | |
| |||
736 | 741 | | |
737 | 742 | | |
738 | 743 | | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | 744 | | |
743 | 745 | | |
744 | 746 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
| 225 | + | |
225 | 226 | | |
226 | | - | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| |||
0 commit comments