-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 951 Bytes
/
doc.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
name: doc
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 100
- uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'pnpm'
- uses: marceloprado/has-changed-path@v1
id: changed-d-ts
with:
paths: package.json index.d.ts
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Build docs
if: steps.changed-d-ts.outputs.changed == 'true'
run: |
pnpm i
pnpm build:docs
pnpm build:docs --json docs/types.json
- name: Deploy to GitHub Pages
if: steps.changed-d-ts.outputs.changed == 'true'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs
single-commit: true