Fix build: upgrade Starlight to 0.40.0, migrate breaking config changes, add CI workflow#37
Merged
Merged
Conversation
…idebar config, add CI workflow
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job build
Fix build: upgrade Starlight to 0.40.0, migrate breaking config changes, add CI workflow
Jun 29, 2026
Comment on lines
+10
to
+25
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| # version is read from the "packageManager" field in package.json | ||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| cache: pnpm | ||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
| - name: Build with Astro | ||
| run: pnpm build |
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.
astro@6.4.6ships Zod v4 internally. Starlight 0.32.6's social schema usesz.record(z.enum(socialLinks), z.string().url()), which in Zod v4 requires all enum keys to be present — producing 43 "expected string, received undefined" errors at build time.Changes
package.json— bump@astrojs/starlight^0.32.0→^0.40.0(last version compatible with Astro v6.x; resolves the Zod v4 incompatibility)astro.config.mjs— apply two breaking-change migrations required between 0.32 and 0.40:social: object → array syntax (v0.33.0)autogenerate: must be nested insideitems(v0.39.0)pnpm-lock.yaml— regenerated.github/workflows/ci.yml— new workflow that runspnpm buildon pull requests and non-mainpushes, so build failures are caught before they reach the deploy workflow