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:
|
|
|
|
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
|
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-03-18 14:34:18 +08:00
|
|
|
package_manager: yarn
|
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
|