Skip to content

Commit 31fb4d7

Browse files
authored
ci: change node version to 22 (#3819)
1 parent d5f50da commit 31fb4d7

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

.github/workflows/pkg-pr-new.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
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

@@ -26,4 +26,3 @@ jobs:
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-

.github/workflows/pr-comment-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/preview-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ name: PREVIEW_PUBLISH
44

55
on:
66
workflow_run:
7-
workflows: ["MAIN_PULL_REQUEST"]
7+
workflows: ['MAIN_PULL_REQUEST']
88
types:
99
- completed
1010

1111
jobs:
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 }}

.github/workflows/pull-request.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ on:
1010

1111
jobs:
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

.github/workflows/tag-push.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ on: create
77

88
jobs:
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

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

0 commit comments

Comments
 (0)