Skip to content

Commit 13af604

Browse files
committed
ci: move typedoc generation to publish workflow
1 parent c493b3a commit 13af604

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,17 @@ jobs:
3535
- name: Install dependencies
3636
run: npm ci
3737

38-
- run: npm publish
38+
- name: Typedoc
39+
run: npm run doc
40+
41+
- name: Deploy
42+
uses: peaceiris/actions-gh-pages@v3
43+
with:
44+
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
publish_dir: ./docs/
46+
47+
- name: Publish
48+
run: npm publish
3949
env:
4050
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4151

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docs
1+
name: Test
22

33
on:
44
push:
@@ -34,11 +34,5 @@ jobs:
3434
- name: Install dependencies
3535
run: npm ci
3636

37-
- name: Typedoc
38-
run: npm run doc
39-
40-
- name: Deploy
41-
uses: peaceiris/actions-gh-pages@v3
42-
with:
43-
github_token: ${{ secrets.GITHUB_TOKEN }}
44-
publish_dir: ./docs/
37+
- name: Build
38+
run: npm run build

0 commit comments

Comments
 (0)