mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 08:43:57 +08:00
ebbdd2c459
* chore: use bun as size-limit package manager Signed-off-by: afc163 <afc163@gmail.com> * Update .github/workflows/size-limit.yml Signed-off-by: afc163 <afc163@gmail.com> * Update .github/workflows/size-limit.yml Signed-off-by: afc163 <afc163@gmail.com> * Update size-limit.yml Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com>
30 lines
616 B
YAML
30 lines
616 B
YAML
name: 📦 Size Limit
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
size:
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: oven-sh/setup-bun@v1
|
|
- name: size-limit
|
|
uses: ant-design/size-limit-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
package_manager: bun
|
|
build_script: dist
|
|
env:
|
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
|
PRODUCTION_ONLY: 1
|
|
NO_DUP_CHECK: 1
|