File tree Expand file tree Collapse file tree 6 files changed +14
-9
lines changed
Expand file tree Collapse file tree 6 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 1717
1818 - uses : actions/setup-node@v4
1919 with :
20- node-version : 18
20+ node-version-file : .node-version
2121
2222 - run : npm install
2323
2626 - run : node ./script/workflows/pkg-pr-new-generate-template.mjs
2727
2828 - run : npx pkg-pr-new publish --compact --template 'tdesign-vue2-demo/**'
29-
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ jobs:
229229
230230 - uses : actions/setup-node@v4
231231 with :
232- node-version : 18
232+ node-version-file : .node-version
233233
234234 - run : npm install
235235
@@ -244,7 +244,7 @@ jobs:
244244 git commit -m "chore: update snapshot"
245245 fi
246246 git status
247-
247+
248248 - name : git push
249249 run : |
250250 git status
@@ -287,7 +287,7 @@ jobs:
287287
288288 - uses : actions/setup-node@v4
289289 with :
290- node-version : 18
290+ node-version-file : .node-version
291291
292292 - run : npm install
293293
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ name: PREVIEW_PUBLISH
44
55on :
66 workflow_run :
7- workflows : [" MAIN_PULL_REQUEST" ]
7+ workflows : [' MAIN_PULL_REQUEST' ]
88 types :
99 - completed
1010
1111jobs :
1212 call-preview :
13- uses : Tencent/tdesign /.github/workflows/preview.yml@main
13+ uses : TDesignOteam/workflows /.github/workflows/reusable-pr- preview.yml@main
1414 secrets :
1515 TDESIGN_SURGE_TOKEN : ${{ secrets.TDESIGN_SURGE_TOKEN }}
Original file line number Diff line number Diff line change 1010
1111jobs :
1212 call-test-build :
13- uses : Tencent/tdesign/.github/workflows/test-build.yml@main
13+ uses : TDesignOteam/workflows/.github/workflows/reusable-unit-test.yml@main
14+ with :
15+ node-version-file : .node-version
Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ on: create
77
88jobs :
99 call-publish :
10- uses : Tencent/tdesign/.github/workflows/publish.yml@main
10+ if : github.event.ref_type == 'tag'
11+ uses : TDesignOteam/workflows/.github/workflows/reusable-publish-npm.yml@main
1112 secrets :
1213 TDESIGN_SURGE_TOKEN : ${{ secrets.TDESIGN_SURGE_TOKEN }}
1314 PERSONAL_TOKEN : ${{ secrets.PERSONAL_TOKEN }}
15+ with :
16+ node-version-file : .node-version
1417 permissions :
1518 contents : read
1619 id-token : write
Original file line number Diff line number Diff line change 1+ 22
You can’t perform that action at this time.
0 commit comments