Skip to content

Commit a3522f2

Browse files
authored
ci: update workflow (#45)
1 parent 7b9fee1 commit a3522f2

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/deploy-github.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy home to github.io
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [dev,main]
66
paths:
77
- 'packages/common/**'
88
- 'packages/home/**'
@@ -25,7 +25,9 @@ jobs:
2525
with:
2626
version: 9
2727
- name: Install deps
28-
run: pnpm i
28+
run: |
29+
pnpm -F opentiny-design-common i
30+
pnpm -F opentiny-design-home i
2931
- name: Build common
3032
run: pnpm build:common
3133
- name: Build home

.github/workflows/deploy-obs-docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Deploy docs to Huawei OBS
22

33
on:
44
push:
5-
branches: [main]
5+
tags:
6+
- 'v*'
67
paths:
78
- 'packages/opentiny-docs/**'
89

@@ -39,7 +40,7 @@ jobs:
3940
with:
4041
version: 9
4142
- name: Install deps
42-
run: pnpm i
43+
run: pnpm -F opentiny-docs install
4344
- name: Get docs version
4445
id: ver
4546
run: |

.github/workflows/deploy-obs-tiny-engine.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
with:
4141
version: 9
4242
- name: Install deps
43-
run: pnpm install --ignore-scripts
43+
run: pnpm -F tiny-engine-portal install --ignore-scripts
4444
- name: Ensure submodules are up-to-date (pull latest from their remote)
4545
# 这一步会把子模块更新到各自远端的最新分支(通常是子模块配置的上游)
4646
run: |

.github/workflows/deploy-obs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141
with:
4242
version: 9
4343
- name: Install deps
44-
run: pnpm i
44+
run: |
45+
pnpm -F opentiny-design-common i
46+
pnpm -F opentiny-design-home i
4547
- name: Build common
4648
run: pnpm build:common
4749
- name: Get home version

0 commit comments

Comments
 (0)