File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Bundle Size
2+
3+ on :
4+ pull_request :
5+ branches : [main, master]
6+ paths :
7+ - " packages/core/**"
8+ workflow_call :
9+ # This allows the workflow to be called from other workflows
10+ secrets :
11+ GITHUB_TOKEN :
12+ required : true
13+
14+ jobs :
15+ size :
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : Setup Node.js
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : " 18"
25+ cache : " yarn"
26+
27+ - name : Install dependencies
28+ run : yarn install --frozen-lockfile
29+
30+ - name : Build
31+ run : cd packages/core && yarn build
32+
33+ - name : Check bundle size
34+ uses : andresz1/size-limit-action@v1
35+ with :
36+ github_token : ${{ secrets.GITHUB_TOKEN }}
37+ directory : ./packages/core
You can’t perform that action at this time.
0 commit comments