Skip to content

Commit efcf7cb

Browse files
committed
ci: pr-compressed-size
1 parent 888ded5 commit efcf7cb

1 file changed

Lines changed: 27 additions & 5 deletions

File tree

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,48 @@
1-
name: Compressed Size
1+
name: pr-compressed-size
22

33
on:
44
pull_request:
55
types: [opened, synchronize]
66

77
jobs:
8-
compressed-size:
8+
tdesign-react:
99
runs-on: ubuntu-latest
10-
if: startsWith(github.head_ref, 'release/')
1110
steps:
1211
- uses: actions/checkout@v6
1312
with:
1413
submodules: recursive
1514
- name: Setup pnpm
1615
uses: pnpm/action-setup@v6
1716

18-
- uses: actions/setup-node@v4
17+
- uses: actions/setup-node@v6
1918
with:
2019
node-version-file: .node-version
2120

2221
- uses: preactjs/compressed-size-action@v2
2322
with:
2423
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2524
install-script: "pnpm install"
26-
pattern: "packages/tdesign-react/dist/**/*.{js,css}"
25+
build-script: "build"
26+
pattern: "packages/tdesign-react/dist/**/*.{js,css}"
27+
comment-key: tdesign-react
28+
29+
tdesign-react-chat:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v6
33+
with:
34+
submodules: recursive
35+
- name: Setup pnpm
36+
uses: pnpm/action-setup@v6
37+
38+
- uses: actions/setup-node@v6
39+
with:
40+
node-version-file: .node-version
41+
42+
- uses: preactjs/compressed-size-action@v2
43+
with:
44+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
45+
install-script: "pnpm install"
46+
build-script: "build:aigc"
47+
pattern: "packages/tdesign-react-aigc/dist/**/*.{js,css}"
48+
comment-key: tdesign-react-chat

0 commit comments

Comments
 (0)