Skip to content

Commit 2dd2887

Browse files
authored
ci: add docs build workflow (#3235)
* ci: add docs build workflow Add CI workflow that runs npm ci and npm run build in src/docs whenever files under src/docs change in a pull request. Closes #3225 * ci: also trigger docs build when workflow file changes * ci: address docs build workflow review
1 parent 4bbe8a2 commit 2dd2887

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/docs-build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Docs Build
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'src/docs/**'
7+
8+
jobs:
9+
build-docs:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '24'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build docs
26+
run: npm run build
27+
working-directory: src/docs

0 commit comments

Comments
 (0)