Skip to content

Commit

Permalink
Create size-limit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe authored Mar 15, 2024
1 parent 1d0fc6f commit abf929c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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

0 comments on commit abf929c

Please sign in to comment.