2022-12-05 21:32:10 +08:00
|
|
|
name: 📦 Size Limit
|
2022-07-27 11:59:11 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize]
|
|
|
|
|
|
|
|
permissions:
|
2024-04-17 21:47:05 +08:00
|
|
|
issues: write
|
2022-07-27 11:59:11 +08:00
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
2022-12-05 21:32:10 +08:00
|
|
|
size:
|
2022-07-27 11:59:11 +08:00
|
|
|
permissions:
|
2022-12-05 21:32:10 +08:00
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
2022-07-27 11:59:11 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-01-15 14:12:16 +08:00
|
|
|
- uses: actions/checkout@v4
|
2024-06-25 10:39:47 +08:00
|
|
|
- uses: oven-sh/setup-bun@v2
|
2022-12-06 23:28:59 +08:00
|
|
|
- name: size-limit
|
|
|
|
uses: ant-design/size-limit-action@master
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2024-05-04 18:00:14 +08:00
|
|
|
package_manager: bun
|
2022-12-06 23:28:59 +08:00
|
|
|
build_script: dist
|
|
|
|
env:
|
2023-11-23 20:29:38 +08:00
|
|
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
2023-08-10 15:17:40 +08:00
|
|
|
PRODUCTION_ONLY: 1
|
2023-12-30 00:19:28 +08:00
|
|
|
NO_DUP_CHECK: 1
|
2024-05-04 18:00:14 +08:00
|
|
|
CI_JOB_NUMBER: 1
|