Skip to content

Commit fa604a9

Browse files
ianzoneyoyo837
andauthored
chore: ci update (#18573)
Co-authored-by: Amumu <yoyo837@hotmail.com>
1 parent 9f123a4 commit fa604a9

File tree

8 files changed

+44
-61
lines changed

8 files changed

+44
-61
lines changed

.github/workflows/auto-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
15-
- name : GITHUB CONTEXT
14+
uses: actions/checkout@v5
15+
- name: GITHUB CONTEXT
1616
env:
1717
GITHUB_CONTEXT: ${{ toJson(github) }}
1818
run: echo "$GITHUB_CONTEXT"

.github/workflows/build-rust-binding.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ jobs:
4545
runs-on: ${{ matrix.settings.host }}
4646
steps:
4747
- name: Checkout
48-
uses: actions/checkout@v4
48+
uses: actions/checkout@v5
4949
- name: Setup pnpm
5050
uses: pnpm/action-setup@v4
5151
with:
5252
version: 10
5353
- name: Setup Node.js ${{ matrix.node-version }}
54-
uses: actions/setup-node@v4
54+
uses: actions/setup-node@v6
5555
if: ${{ !matrix.settings.docker }}
5656
with:
5757
node-version: ${{ matrix.node-version }}

.github/workflows/build-rust-wasm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@v5
1313
- name: Setup Rust
1414
uses: dtolnay/rust-toolchain@stable
1515
with:

.github/workflows/dependabot-update-lockfile.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
pull-requests: write
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v4
16-
with :
17-
ref : ${{ github.head_ref }}
15+
uses: actions/checkout@v5
16+
with:
17+
ref: ${{ github.head_ref }}
1818

1919
- name: Generate SBOM
2020
run: |
@@ -28,4 +28,4 @@ jobs:
2828
- name: SBOM upload
2929
uses: jhutchings1/spdx-to-dependency-graph-action@v0.0.2
3030
with:
31-
filePath: "_manifest/spdx_2.2/"
31+
filePath: '_manifest/spdx_2.2/'

.github/workflows/issue-labeler.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Issue labeler
22
on:
33
issues:
4-
types: [ opened ]
4+
types: [opened]
55

66
permissions:
77
contents: read
@@ -14,10 +14,10 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
template: [ bug_report.yml ]
17+
template: [bug_report.yml]
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
2121

2222
- name: 解析模板
2323
uses: stefanbuck/github-issue-parser@v3
@@ -30,4 +30,4 @@ jobs:
3030
with:
3131
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
3232
template: ${{ matrix.template }}
33-
token: ${{ secrets.GITHUB_TOKEN }}
33+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/nodejs.yml

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ jobs:
4141
matrix:
4242
node-version: [18.x, 20.x]
4343
host: [macos-13, windows-latest, ubuntu-latest]
44-
include:
45-
- host: macos-13
46-
target: x86_64-apple-darwin
47-
- host: windows-latest
48-
target: x86_64-pc-windows-msvc
49-
- host: ubuntu-latest
50-
target: x86_64-unknown-linux-gnu
51-
- host: ubuntu-latest
52-
target: x86_64-unknown-linux-musl
5344
exclude:
5445
- node-version: 18.x
5546
host: macos-13
@@ -59,37 +50,35 @@ jobs:
5950
host: macos-13
6051
- node-version: 20.x
6152
host: windows-latest
53+
include:
54+
- host: macos-13
55+
target: x86_64-apple-darwin
56+
- host: windows-latest
57+
target: x86_64-pc-windows-msvc
58+
- host: ubuntu-latest
59+
target: x86_64-unknown-linux-gnu
60+
- host: ubuntu-latest
61+
target: x86_64-unknown-linux-musl
6262

6363
runs-on: ${{ matrix.host }}
6464
steps:
6565
- name: Checkout
66-
uses: actions/checkout@v4
66+
uses: actions/checkout@v5
6767
- name: Setup pnpm
6868
uses: pnpm/action-setup@v4
6969
with:
7070
version: 10
7171
- name: Setup Node.js ${{ matrix.node-version }}
72-
uses: actions/setup-node@v4
72+
uses: actions/setup-node@v6
7373
with:
7474
node-version: ${{ matrix.node-version }}
7575
cache: 'pnpm'
76-
- name: Prune store
77-
shell: bash
78-
run: |
79-
PNPM_STORE_PATH=$(pnpm store path)
80-
echo "[Debug] Store path: $PNPM_STORE_PATH"
81-
if [ -d ${PNPM_STORE_PATH} ]; then
82-
echo "[Debug] pnpm store exists"
83-
pnpm store prune
84-
else
85-
echo "[Debug] pnpm store does not exist"
86-
fi
8776
- name: Install dependencies
8877
run: pnpm -r install --frozen-lockfile
8978
- name: Lint
9079
run: pnpm lint
9180
- name: Download artifact bindings-${{ matrix.target }}
92-
uses: actions/download-artifact@v4
81+
uses: actions/download-artifact@v6
9382
with:
9483
name: bindings-${{ matrix.target }}
9584
path: crates/native_binding
@@ -102,7 +91,7 @@ jobs:
10291
run: docker run --rm -v $(pwd):/build -w /build chf007/pnpm pnpm test:binding
10392
# 以下的测试流程应该在所有平台都执行,但 windows 好像还有些问题,因此目前只在 ubuntu-latest 执行
10493
- name: Download all artifacts
105-
uses: actions/download-artifact@v4
94+
uses: actions/download-artifact@v6
10695
with:
10796
path: crates/native_binding/artifacts
10897
- name: List Package crates/native_binding
@@ -122,8 +111,6 @@ jobs:
122111
NODE_OPTIONS: --max_old_space_size=4096
123112
- name: test
124113
run: pnpm test
125-
env:
126-
CI: true
127114
# 以下 coverage 流程通过 artifact 拆分文件作为单独 job 上传时间损耗过长,因此在在 node test 后直接继续执行
128115
- name: Upload [taro-cli] coverage to Codecov
129116
uses: codecov/codecov-action@v5
@@ -164,7 +151,7 @@ jobs:
164151
runs-on: ubuntu-latest
165152
steps:
166153
- name: Checkout
167-
uses: actions/checkout@v4
154+
uses: actions/checkout@v5
168155
- name: Setup Rust
169156
uses: dtolnay/rust-toolchain@stable
170157
with:

.github/workflows/publish.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ on:
1515
- main
1616
types: [closed]
1717

18-
env:
19-
CI: true
20-
# MOCK_PUBLISH: true
21-
2218
jobs:
2319
need-publish:
2420
permissions:
@@ -33,10 +29,10 @@ jobs:
3329
steps:
3430
# Setup
3531
- name: Checkout
36-
uses: actions/checkout@v4
32+
uses: actions/checkout@v5
3733

3834
# Log meta
39-
- name : GITHUB CONTEXT
35+
- name: GITHUB CONTEXT
4036
env:
4137
GITHUB_CONTEXT: ${{ toJson(github) }}
4238
run: echo "$GITHUB_CONTEXT"
@@ -47,7 +43,7 @@ jobs:
4743
COMMIT_MESSAGE=$(git log --format=%s -n 1)
4844
echo "COMMIT_MESSAGE=${COMMIT_MESSAGE}" >> $GITHUB_ENV
4945
- name: Show commit message
50-
run : echo "$COMMIT_MESSAGE"
46+
run: echo "$COMMIT_MESSAGE"
5147

5248
- name: Determine if should abort publish
5349
run: |
@@ -95,15 +91,15 @@ jobs:
9591
steps:
9692
# Setup
9793
- name: Checkout
98-
uses: actions/checkout@v4
94+
uses: actions/checkout@v5
9995
with:
10096
ref: ${{ github.ref_name }}
10197
- name: Setup pnpm
10298
uses: pnpm/action-setup@v4
10399
with:
104100
version: 10
105101
- name: Setup Node 18
106-
uses: actions/setup-node@v4
102+
uses: actions/setup-node@v6
107103
with:
108104
node-version: 18
109105
cache: 'pnpm'
@@ -117,7 +113,7 @@ jobs:
117113
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118114

119115
# Log meta
120-
- name : GITHUB CONTEXT
116+
- name: GITHUB CONTEXT
121117
env:
122118
GITHUB_CONTEXT: ${{ toJson(github) }}
123119
run: echo "$GITHUB_CONTEXT"
@@ -174,7 +170,7 @@ jobs:
174170
- name: Install dependencies
175171
run: pnpm -r install --frozen-lockfile
176172
- name: Download all artifacts
177-
uses: actions/download-artifact@v4
173+
uses: actions/download-artifact@v6
178174
with:
179175
path: crates/native_binding/artifacts
180176
- name: Move artifacts
@@ -280,7 +276,7 @@ jobs:
280276
run: pnpm build
281277

282278
- name: Checkout Harmony Project
283-
uses: actions/checkout@v4
279+
uses: actions/checkout@v5
284280
with:
285281
repository: NervJS/taro-harmony-project
286282
path: packages/taro-platform-harmony-cpp/harmony_project
@@ -367,7 +363,7 @@ jobs:
367363
github_token: ${{ secrets.GITHUB_TOKEN }}
368364
github_repo: ${{ github.repository }}
369365
git_commit_sha: ${{ steps.commitHar.outputs.sha || github.sha }}
370-
git_tag_prefix: "v"
366+
git_tag_prefix: 'v'
371367

372368
# ------------------ publish -------------
373369

.github/workflows/sync-components-types.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

1616
- name: Checkout taro-docs
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
with:
1919
repository: NervJS/taro-docs
2020
fetch-depth: 1
2121
path: .taro-docs
22-
- run : |
22+
- run: |
2323
cp -r .taro-docs/packages/taro/types/* packages/taro/types
2424
cp -r .taro-docs/packages/taro-components/types/* packages/taro-components/types
2525
rm -rf .taro-docs
@@ -43,7 +43,7 @@ jobs:
4343
- args: [--filter @tarojs/components, -D, miniapp-types@latest]
4444
# Note: 当前同步脚本使用 ts-node 与 node20 存在兼容问题,修复后解除版本限制
4545
- name: Setup Node 18
46-
uses: actions/setup-node@v4
46+
uses: actions/setup-node@v6
4747
with:
4848
node-version: 18
4949
cache: 'pnpm'
@@ -61,11 +61,11 @@ jobs:
6161
with:
6262
token: ${{ secrets.GITHUB_TOKEN }}
6363
base: main
64-
body: "sync components types"
65-
branch: "refactor/sync-types"
66-
commit-message: "refactor(types): sync components types"
64+
body: 'sync components types'
65+
branch: 'refactor/sync-types'
66+
commit-message: 'refactor(types): sync components types'
6767
delete-branch: true
68-
title: "refactor(types): sync components types"
68+
title: 'refactor(types): sync components types'
6969
labels: |
7070
A-typings
7171
A-components

0 commit comments

Comments
 (0)