Skip to content

Commit fd1532a

Browse files
committed
test(ci): add build workflow to catch build errors in CI
1 parent f8bc44c commit fd1532a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build VitePress Site
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup Node
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 18
18+
cache: yarn # or pnpm / npm
19+
- name: Install dependencies
20+
run: yarn install # or pnpm install / npm ci
21+
- name: Build with VitePress
22+
run: yarn docs:build # or pnpm docs:build / npm docs:build

0 commit comments

Comments
 (0)