Skip to content

Commit e655176

Browse files
committed
ci: better workflows flow
1 parent b1ff612 commit e655176

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Deploy docs to Pages
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
workflow_dispatch:
4+
workflow_run:
5+
workflows: ["Version or Publish"]
6+
types: [completed]
7+
branches: [master]
88

99
permissions: read-all
1010

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ jobs:
2727

2828
- run: pnpm i
2929

30+
- run: pnpm docs:install
31+
3032
- run: pnpm check
3133

3234
- run: pnpm build
3335

36+
- run: pnpm docs:build
37+
3438
- run: pnpm test

.github/workflows/version-or-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Version or Publish
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
workflow_run:
5+
workflows: ["Builds, tests & co"]
6+
types: [completed]
7+
branches: [master]
78

89
concurrency: ${{ github.workflow }}
910

0 commit comments

Comments
 (0)