Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: create size-limit.yml #227

Merged
merged 4 commits into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
afc163 marked this conversation as resolved.
Show resolved Hide resolved
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