-
-
Notifications
You must be signed in to change notification settings - Fork 420
49 lines (47 loc) · 1.12 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build Docs
on:
pull_request:
branches: [ master ]
paths:
- 'tsconfig.json'
- 'scripts/build-docs.js'
- 'package*.json'
- 'lib/**/*.ts'
- 'lib/**/*.js'
- 'docs/**'
- '.github/workflows/docs.yml' # this file
- '!ci-jobs/**'
- '!**/test/**'
push:
branches: [ master ]
paths:
- 'tsconfig.json'
- 'scripts/build-docs.js'
- 'package*.json'
- 'lib/**/*.ts'
- 'lib/**/*.js'
- 'docs/**'
- '.github/workflows/docs.yml' # this file
- '!ci-jobs/**'
- '!**/test/**'
jobs:
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- run: npm install
name: Install dependencies
- name: Install dependencies (Python)
run: npm run install-docs-deps
- name: Build Docs
run: npm run build:docs