Skip to content

Commit cdec158

Browse files
ConorOkusclaude
andcommitted
ci: build VitePress for CI + Netlify; sync package-lock
The Netlify deploy preview and the GitHub Actions "build" job both failed: - `npm ci` errored because package-lock.json was out of sync with the VitePress dependency tree (terser, acorn, axios, …). Regenerated the lock so `npm ci` installs cleanly. - The build pipeline still targeted VuePress (`npm run build` → `vuepress build`, publishing docs/.vuepress/dist), which now fails on the ported content. Point CI at `npm run build:vitepress` and publish docs/.vitepress/dist, and add a netlify.toml so deploy previews build the VitePress site (overriding the stale UI build settings). Verified locally with Node 22: `npm ci` + `npm run build:vitepress` both succeed and emit docs/.vitepress/dist. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e9fb8da commit cdec158

3 files changed

Lines changed: 94 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ jobs:
2626
- name: Install
2727
run: npm ci
2828
- name: Build
29-
run: npm run build
29+
run: npm run build:vitepress
3030
# Deploy, limited to the main branch
3131
- name: Deploy
3232
if: success() && github.ref == 'refs/heads/main'
3333
uses: peaceiris/actions-gh-pages@v4
3434
with:
35-
publish_dir: ./docs/.vuepress/dist
35+
publish_dir: ./docs/.vitepress/dist
3636
github_token: ${{ secrets.GITHUB_TOKEN }}
3737
cname: lightningdevkit.org
3838
user_name: 'github-actions[bot]'

netlify.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Build the VitePress site for Netlify deploy previews (and production).
2+
# Overrides any build command/publish dir configured in the Netlify UI,
3+
# which still pointed at the old VuePress pipeline.
4+
[build]
5+
command = "npm run build:vitepress"
6+
publish = "docs/.vitepress/dist"
7+
8+
[build.environment]
9+
NODE_VERSION = "22"

package-lock.json

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)