File tree Expand file tree Collapse file tree 3 files changed +172
-34
lines changed Expand file tree Collapse file tree 3 files changed +172
-34
lines changed Original file line number Diff line number Diff line change 1+ name : " Size Limit"
2+ on :
3+ pull_request :
4+ branches : [main]
5+ types : [opened, synchronize]
6+
7+ jobs :
8+ size-limit :
9+ permissions :
10+ contents : read
11+ pull-requests : write
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ - uses : actions/setup-node@v4
16+ with :
17+ node-version : 22
18+ - uses : pnpm/action-setup@v4
19+ with :
20+ version : latest
21+ run_install : true
22+ - uses : andresz1/size-limit-action@v1.8.0
23+ with :
24+ github_token : ${{ secrets.GITHUB_TOKEN }}
25+ package_manager : pnpm
Original file line number Diff line number Diff line change 1313 "format" : " pnpm run -r --parallel --aggregate-output format" ,
1414 "test" : " pnpm run -r --parallel --aggregate-output test" ,
1515 "test-e2e" : " pnpm run -r --parallel --aggregate-output test-e2e" ,
16+ "size" : " pnpm run build && size-limit" ,
1617 "version" : " pnpm run build && changeset version && pnpm i"
1718 },
1819 "devDependencies" : {
1920 "@biomejs/biome" : " ^1.8.1" ,
2021 "@changesets/changelog-github" : " ^0.5.0" ,
2122 "@changesets/cli" : " ^2.27.5" ,
2223 "@playwright/test" : " ^1.44.1" ,
24+ "@size-limit/preset-small-lib" : " ^11.1.4" ,
2325 "@types/node" : " ^20.14.7" ,
2426 "del-cli" : " ^5.1.0" ,
2527 "prettier" : " ^3.3.2" ,
28+ "size-limit" : " ^11.1.4" ,
2629 "typescript" : " ^5.4.5" ,
2730 "vitest" : " ^2.0.5"
28- }
31+ },
32+ "size-limit" : [
33+ {
34+ "path" : " packages/openapi-fetch/dist/index.min.js" ,
35+ "limit" : " 6.5 kB" ,
36+ "brotli" : false
37+ }
38+ ]
2939}
You can’t perform that action at this time.
0 commit comments