Skip to content

Commit 86fd7dc

Browse files
committed
Add docs CI workflow to verify docs build on PRs
Runs on PRs that touch docs/ or SDK source (which affects TypeDoc API docs generation). Catches broken docs builds before merge.
1 parent c8e0bcd commit 86fd7dc

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/docs-ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Docs CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- 'docs/**'
8+
- 'packages/b2c-tooling-sdk/src/**'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v4
19+
with:
20+
version: 10.17.1
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 22
26+
cache: pnpm
27+
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Build packages
32+
run: pnpm -r run build
33+
34+
- name: Build documentation
35+
run: pnpm run docs:build

0 commit comments

Comments
 (0)