Commit e7f30e6
CI: fix docs-deploy Node version for Astro build (#111)
The deploy workflow ran the library build (webpack, Node 20) and the
Astro website build in the same job under node-version 20, causing
Astro to fail with "Node.js v20 is not supported".
A single job can only run one Node version, so split the build job:
- build-library (Node 20): builds the webpack bundle and uploads it
as a GitHub Actions artifact
- build-website (Node 22): downloads the bundle, copies it into
website/public/, installs website deps, builds the Astro site, and
uploads the Pages artifact
- deploy: now depends on build-website (unchanged otherwise)
🤖 Generated with [eca](https://eca.dev)
Co-authored-by: eca <git@eca.dev>1 parent 0fcd87c commit e7f30e6
1 file changed
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
39 | 63 | | |
40 | 64 | | |
41 | 65 | | |
| |||
53 | 77 | | |
54 | 78 | | |
55 | 79 | | |
56 | | - | |
| 80 | + | |
57 | 81 | | |
58 | 82 | | |
59 | 83 | | |
| |||
0 commit comments