Skip to content

Commit

Permalink
chore: create size-limit.yml (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Nov 24, 2024
1 parent f4d3167 commit f3e7883
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
},
"size-limit": [
{
"path": "./dist/antd-x.min.js",
"path": "./dist/antdx.min.js",
"limit": "350 KiB"
}
]
Expand Down

0 comments on commit f3e7883

Please sign in to comment.