Repository navigation
49 lines (49 loc) · 1.57 KB
/
Copy pathdocs.yml
File metadata and controls
49 lines (49 loc) · 1.57 KB
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: documentation
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
workflow_call:
permissions:
contents: read
jobs:
build-and-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24'
cache: npm
cache-dependency-path: |
package-lock.json
website/package-lock.json
- run: npm ci --no-audit --no-fund
- run: npm ci --no-audit --no-fund
working-directory: website
- run: npm run docs:check
- run: npm run docs:examples
env:
CG_ARTIFACTS_DIR: ${{ runner.temp }}/capability-graph-doc-examples
- run: npm run docs:build
env:
CG_SITE_BUILD_DIR: ${{ runner.temp }}/capability-graph-site
- run: npx --no-install playwright install --with-deps chromium
working-directory: website
env:
PLAYWRIGHT_BROWSERS_PATH: ${{ runner.temp }}/playwright
- run: npm run docs:browser
env:
CG_SITE_BUILD_DIR: ${{ runner.temp }}/capability-graph-site
CG_SITE_ARTIFACTS_DIR: ${{ runner.temp }}/capability-graph-browser
PLAYWRIGHT_BROWSERS_PATH: ${{ runner.temp }}/playwright
- uses: actions/upload-artifact@v4
if: always()
with:
name: documentation-review
path: |
${{ runner.temp }}/capability-graph-doc-examples
${{ runner.temp }}/capability-graph-site
${{ runner.temp }}/capability-graph-browser
include-hidden-files: true