Skip to content

Commit 59d6d0d

Browse files
chore: setup size limit (with CI) (#93)
1 parent fe98a0d commit 59d6d0d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
pull-requests: write
12+
1013
jobs:
1114
lint:
1215
runs-on: ubuntu-latest
@@ -55,6 +58,11 @@ jobs:
5558
- name: Build package
5659
run: yarn build
5760

61+
- name: Calculate Size
62+
uses: andresz1/size-limit-action@v1
63+
with:
64+
github_token: ${{ secrets.GITHUB_TOKEN }}
65+
5866
test-website:
5967
runs-on: ubuntu-latest
6068
name: Test Website

.size-limit.json

+4
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
{
33
"path": "dist/esm/index.mjs",
44
"limit": "2 kB"
5+
},
6+
{
7+
"path": "dist/esm/patterns/index.mjs",
8+
"limit": "3 kB"
59
}
610
]

0 commit comments

Comments
 (0)