Skip to content

Commit 298388f

Browse files
committed
Add size-limit-action CI workflow
1 parent 09cd0aa commit 298388f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/size.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: size
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
permissions:
9+
pull-requests: write
10+
11+
jobs:
12+
size:
13+
name: Check compressed size
14+
runs-on: ubuntu-latest
15+
env:
16+
CI_JOB_NUMBER: 1
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: EskiMojo14/size-limit-action@v2
20+
with:
21+
directory: .
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
build_script: build
24+
package_manager: yarn
25+
size_margin: non-zero

0 commit comments

Comments
 (0)