Skip to content

CI: fix docs-deploy Node version for Astro build#111

Merged
afucher merged 1 commit intomainfrom
ci/fix-docs-deploy-node-version
Mar 31, 2026
Merged

CI: fix docs-deploy Node version for Astro build#111
afucher merged 1 commit intomainfrom
ci/fix-docs-deploy-node-version

Conversation

@afucher
Copy link
Copy Markdown
Contributor

@afucher afucher commented Mar 31, 2026

Summary

  • The docs-deploy.yml workflow ran both the library (webpack) build and the Astro website build inside the same job under node-version: 20, causing Astro to fail: "Node.js v20 is not supported by Astro! Please upgrade to >=22.12.0"
  • A single GHA job can only run one Node version, so the build job has been split into two:
    • build-library (Node 20): compiles the webpack bundle and uploads it as a workflow artifact
    • build-website (Node 22): downloads the bundle, copies it to website/public/, installs website deps, builds the Astro site, and uploads the Pages artifact
  • deploy now depends on build-website instead of the old build job — no other changes

Test plan

  • build-library job passes on Node 20
  • build-website job passes on Node 22
  • deploy job successfully deploys to GitHub Pages

🤖 Generated with eca

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>
@afucher afucher merged commit e7f30e6 into main Mar 31, 2026
4 checks passed
@afucher afucher deleted the ci/fix-docs-deploy-node-version branch March 31, 2026 14:31
@afucher afucher restored the ci/fix-docs-deploy-node-version branch March 31, 2026 14:43
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