From f3e78834a345e17c474adfd1d5950523aae0d3dc Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 24 Nov 2024 13:52:59 +0800 Subject: [PATCH] chore: create size-limit.yml (#227) --- .github/workflows/size-limit.yml | 26 ++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/size-limit.yml diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml new file mode 100644 index 00000000..0b04a217 --- /dev/null +++ b/.github/workflows/size-limit.yml @@ -0,0 +1,26 @@ +name: 📦 Size Limit + +on: + pull_request: + types: [opened, synchronize] + +permissions: + issues: write + contents: read + +jobs: + size: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - name: size-limit + uses: ant-design/size-limit-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + package_manager: bun + build_script: compile diff --git a/package.json b/package.json index 915d306d..0e7f88bb 100644 --- a/package.json +++ b/package.json @@ -277,7 +277,7 @@ }, "size-limit": [ { - "path": "./dist/antd-x.min.js", + "path": "./dist/antdx.min.js", "limit": "350 KiB" } ]