Skip to content

Commit 7b12d1e

Browse files
xiaojunwengnetweng
authored andcommitted
ci: update node version to 24
1 parent 6cfd422 commit 7b12d1e

5 files changed

Lines changed: 26 additions & 22 deletions

File tree

.github/workflows/ci-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: "CI Check"
22

33
on:
44
pull_request:
5-
branches:
6-
- '**'
5+
branches:
6+
- "**"
77

88
# Cancel prev CI if new commit come
99
concurrency:
@@ -15,13 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
node: [20]
18+
node: [24]
1919
name: Run Test on Node ${{ matrix.node }}
2020
steps:
2121
- name: checkout
2222
uses: actions/checkout@v4
2323
- name: Setup node
24-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node }}
2727
- name: Setup yarn

.github/workflows/create-publish-pr.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ on:
33
workflow_dispatch:
44
inputs:
55
semver:
6-
description: 'New Version(semver)'
6+
description: "New Version(semver)"
77
required: true
8-
default: 'patch'
8+
default: "patch"
99
type: choice
1010
options:
1111
- patch
1212
- minor
1313
slack_user:
1414
required: false
15-
description: 'Inform slack user when publish is done'
15+
description: "Inform slack user when publish is done"
1616
type: string
17-
17+
1818
permissions:
1919
contents: write
2020
pull-requests: write
@@ -25,6 +25,10 @@ jobs:
2525
steps:
2626
- name: checkout
2727
uses: actions/checkout@v3
28+
- name: Setup node
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 24
2832
- name: Install Lerna 4.0.0
2933
run: npm install --global lerna@4.0.0
3034
- name: Update Version
@@ -51,7 +55,7 @@ jobs:
5155
branch: release/${{ env.PACKAGE_VERSION }}
5256
branch-suffix: timestamp
5357
delete-branch: true
54-
title: 'v${{ env.PACKAGE_VERSION }}'
58+
title: "v${{ env.PACKAGE_VERSION }}"
5559
body: |
5660
${{ steps.release_note.outputs.stdout }}
5761
labels: "Type: Release"
@@ -67,4 +71,4 @@ jobs:
6771
with:
6872
name: publish-output-v${{ env.PACKAGE_VERSION }}
6973
token: ${{ secrets.GITHUB_TOKEN }}
70-
path: output.txt
74+
path: output.txt

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
strategy:
2323
matrix:
24-
node: [20]
24+
node: [24]
2525
name: Publish on Node ${{ matrix.node }}
2626
steps:
2727
- name: checkout
@@ -70,7 +70,7 @@ jobs:
7070
if: steps.tag_check.outputs.exists_tag == 'false'
7171
uses: actions/setup-node@v4
7272
with:
73-
node-version: 22.14.0
73+
node-version: 24
7474
registry-url: https://registry.npmjs.org
7575
- name: Install npm with OIDC support
7676
if: steps.tag_check.outputs.exists_tag == 'false'

.github/workflows/sync.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@ on:
55
workflow_dispatch:
66
inputs:
77
description:
8-
description: 'Description for the sync action'
8+
description: "Description for the sync action"
99
required: false
1010
slack_user:
11-
description: 'Slack user ID to notify (e.g., U123456)'
11+
description: "Slack user ID to notify (e.g., U123456)"
1212
required: false
1313
# 外部 dispatch 触发
1414
repository_dispatch:
1515
types: [sync-icons]
1616
# 定时执行:每天 UTC 时间 0:00(北京时间 8:00)
1717
schedule:
18-
- cron: '0 0 * * *'
18+
- cron: "0 0 * * *"
1919

2020
jobs:
2121
sync-icon:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
node: [20]
25+
node: [24]
2626
steps:
2727
- name: Checkout repository
2828
uses: actions/checkout@v4
2929
- name: Setup node
30-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v4
3131
with:
3232
node-version: ${{ matrix.node }}
3333
cache: "yarn"
@@ -42,12 +42,12 @@ jobs:
4242
uses: peter-evans/create-pull-request@v5
4343
with:
4444
token: ${{ secrets.GITHUB_TOKEN }}
45-
commit-message: '[SYNC-ICON]: update icons'
45+
commit-message: "[SYNC-ICON]: update icons"
4646
committer: netweng <xiaojun@smartx.com>
4747
author: netweng <xiaojun@smartx.com>
4848
delete-branch: true
4949
branch-suffix: short-commit-hash
50-
title: '[SYNC-ICON]: update icons'
50+
title: "[SYNC-ICON]: update icons"
5151
labels: feat
5252
body: |
5353
Sync Icons from figma
@@ -75,9 +75,9 @@ jobs:
7575
PR_URL="${{ steps.cpr.outputs.pull-request-url }}"
7676
PR_NUMBER="${{ steps.cpr.outputs.pull-request-number }}"
7777
SLACK_USER_MENTION="${{ steps.set_slack_user.outputs.slack_user_mention }}"
78-
78+
7979
TEXT="🎨 Icons Synced! New PR created: <${PR_URL}|#${PR_NUMBER}>\n${DESCRIPTION} ${SLACK_USER_MENTION}"
80-
80+
8181
PAYLOAD=$(jq -n --arg text "$TEXT" '{text: $text}')
8282
echo "payload<<EOF" >> $GITHUB_OUTPUT
8383
echo "$PAYLOAD" >> $GITHUB_OUTPUT

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"bundlewatch": "^0.3.3"
4242
},
4343
"engines": {
44-
"node": "20.x"
44+
"node": "24.x"
4545
},
4646
"resolutions": {
4747
"@types/react": "^17.0.50"

0 commit comments

Comments
 (0)