From e5966b2e7e49ef4262a68528ac5596638d1ed320 Mon Sep 17 00:00:00 2001 From: lwj <674416404@qq.com> Date: Thu, 11 Jun 2026 23:06:19 +0800 Subject: [PATCH] ci: pr-compressed-size --- .github/workflows/pr-compressed-size.yml | 32 ++++++++++++++++++++---- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-compressed-size.yml b/.github/workflows/pr-compressed-size.yml index 1071f87e57..5765545a0a 100644 --- a/.github/workflows/pr-compressed-size.yml +++ b/.github/workflows/pr-compressed-size.yml @@ -1,13 +1,12 @@ -name: Compressed Size +name: pr-compressed-size on: pull_request: types: [opened, synchronize] jobs: - compressed-size: + tdesign-react: runs-on: ubuntu-latest - if: startsWith(github.head_ref, 'release/') steps: - uses: actions/checkout@v6 with: @@ -15,7 +14,7 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v6 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version-file: .node-version @@ -23,4 +22,27 @@ jobs: with: repo-token: "${{ secrets.GITHUB_TOKEN }}" install-script: "pnpm install" - pattern: "packages/tdesign-react/dist/**/*.{js,css}" \ No newline at end of file + build-script: "build" + pattern: "packages/tdesign-react/dist/**/*.{js,css}" + comment-key: tdesign-react + + tdesign-react-chat: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + submodules: recursive + - name: Setup pnpm + uses: pnpm/action-setup@v6 + + - uses: actions/setup-node@v6 + with: + node-version-file: .node-version + + - uses: preactjs/compressed-size-action@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + install-script: "pnpm install" + build-script: "build:aigc" + pattern: "packages/tdesign-react-aigc/es/**/*.{js,css}" + comment-key: tdesign-react-chat \ No newline at end of file