Skip to content

Commit

Permalink
chore: setup size limit (with CI) (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjastrzebski authored May 6, 2024
1 parent fe98a0d commit 59d6d0d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches:
- main

permissions:
pull-requests: write

jobs:
lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -55,6 +58,11 @@ jobs:
- name: Build package
run: yarn build

- name: Calculate Size
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

test-website:
runs-on: ubuntu-latest
name: Test Website
Expand Down
4 changes: 4 additions & 0 deletions .size-limit.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
{
"path": "dist/esm/index.mjs",
"limit": "2 kB"
},
{
"path": "dist/esm/patterns/index.mjs",
"limit": "3 kB"
}
]

0 comments on commit 59d6d0d

Please sign in to comment.