Skip to content

Commit 4b4e12e

Browse files
robinclaude
andcommitted
chore(ci): upgrade GitHub Actions to latest versions
- actions/checkout: v3/v2 → v4 - actions/setup-node: v3 → v4, Node 16 → 18 - pnpm/action-setup: v2.2.2/v2.2.4/v2.4.0 → v4 - actions/cache: v2/v3 → v4 - actions/upload-artifact: v2 → v4 - actions/create-release → softprops/action-gh-release@v2 - Replace deprecated ::set-output with $GITHUB_OUTPUT Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 74d7713 commit 4b4e12e

5 files changed

Lines changed: 28 additions & 29 deletions

File tree

.github/workflows/deploy-tcb.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
node-version: [16.x]
21+
node-version: [18.x]
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: Install pnpm
26-
uses: pnpm/action-setup@v2.2.2
26+
uses: pnpm/action-setup@v4
2727
with:
28-
version: 8
28+
version: 9
2929

3030
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
3333
node-version: ${{ matrix.node-version }}
3434
cache: 'pnpm'

.github/workflows/node.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
node-version: [16.x]
23+
node-version: [18.x]
2424

2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
- name: Install pnpm
28-
uses: pnpm/action-setup@v2.2.2
28+
uses: pnpm/action-setup@v4
2929
with:
30-
version: 8
30+
version: 9
3131

3232
- name: Use Node.js ${{ matrix.node-version }}
33-
uses: actions/setup-node@v3
33+
uses: actions/setup-node@v4
3434
with:
3535
node-version: ${{ matrix.node-version }}
3636
cache: 'pnpm'

.github/workflows/publish.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
- name: Checkout
2929
uses: actions/checkout@v4
3030
- name: Setup Node ${{ matrix.node_version }}
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
33-
node-version: 16
33+
node-version: 18
3434
registry-url: 'https://registry.npmjs.org'
3535
- name: Git Identity
3636
run: |
@@ -91,9 +91,9 @@ jobs:
9191
http_status_code=$(curl -LI $GET_API_URL -o /dev/null -w '%{http_code}\n' -s \
9292
-H "Authorization: token ${GITHUB_TOKEN}")
9393
if [ "$http_status_code" -ne "404" ] ; then
94-
echo "::set-output name=exists_tag::true"
94+
echo "exists_tag=true" >> $GITHUB_OUTPUT
9595
else
96-
echo "::set-output name=exists_tag::false"
96+
echo "exists_tag=false" >> $GITHUB_OUTPUT
9797
fi
9898
env:
9999
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -106,16 +106,16 @@ jobs:
106106

107107
# Bootstrap project
108108
- name: Cache pnpm modules
109-
uses: actions/cache@v3
109+
uses: actions/cache@v4
110110
with:
111111
path: ~/.pnpm-store
112112
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
113113
restore-keys: |
114114
${{ runner.os }}-
115115
- name: install
116-
uses: pnpm/action-setup@v2.4.0
116+
uses: pnpm/action-setup@v4
117117
with:
118-
version: 8
118+
version: 9
119119
run_install: |
120120
- recursive: true
121121
args: [--frozen-lockfile]
@@ -157,13 +157,10 @@ jobs:
157157
- name: Create Release
158158
id: create_release
159159
if: startsWith( env.COMMIT_MESSAGE , 'chore(release):' ) && steps.tag_check.outputs.exists_tag == 'false' && github.event.pull_request.merged == true
160-
uses: actions/create-release@v1
161-
env:
162-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
160+
uses: softprops/action-gh-release@v2
163161
with:
164162
tag_name: v${{ env.CURRENT_VERSION }}
165-
# Copy Pull Request's tile and body to Release Note
166-
release_name: ${{ github.event.pull_request.title }}
163+
name: ${{ github.event.pull_request.title }}
167164
body: |
168165
${{ github.event.pull_request.body }}
169166
draft: false

.github/workflows/rn-release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,27 @@ jobs:
99
name: Taro Bundle Release
1010
steps:
1111
- name: Checkout Project
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1313
- name: Cache node_modules Folder
14-
uses: actions/cache@v2
14+
uses: actions/cache@v4
1515
with:
1616
path: ${{ github.workspace }}/node_modules
1717
key: ${{ runner.os }}-node_modules
1818
restore-keys: ${{ runner.os }}-node_modules
1919

2020
- name: Cache pnpm modules
21-
uses: actions/cache@v3
21+
uses: actions/cache@v4
2222
with:
2323
path: ~/.pnpm-store
2424
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
2525
restore-keys: |
2626
${{ runner.os }}-
2727
2828
- name: install
29-
uses: pnpm/action-setup@v2.2.4
29+
uses: pnpm/action-setup@v4
30+
with:
31+
version: 9
3032
with:
31-
version: 8
3233
run_install: |
3334
- recursive: true
3435
args: [--frozen-lockfile]
@@ -41,7 +42,7 @@ jobs:
4142
appname: Taro-UI-Demo
4243
logo: https://pic5.58cdn.com.cn/nowater/fangfe/n_v25a185c1657984016926f26af591912c4.jpg
4344
- name: Upload Qr Image
44-
uses: actions/upload-artifact@v2
45+
uses: actions/upload-artifact@v4
4546
with:
4647
name: bundle-qr-code
4748
path: |

packages/taro-ui/tsconfig.build.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"compilerOptions": {
44
"target": "es2017",
55
"module": "es6",
6-
"outDir": "./lib"
6+
"outDir": "./lib",
7+
"types": ["node"]
78
},
89
"include": [
910
"src/**/*"

0 commit comments

Comments
 (0)