Skip to content

Commit e664bf3

Browse files
committed
chore: bundle size limit
1 parent 390c6d5 commit e664bf3

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/size-limit.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
 (0)