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" } ]