diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3484e85..7bbb5b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ on: branches: - main +permissions: + pull-requests: write + jobs: lint: runs-on: ubuntu-latest @@ -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 diff --git a/.size-limit.json b/.size-limit.json index d762592..52f3beb 100644 --- a/.size-limit.json +++ b/.size-limit.json @@ -2,5 +2,9 @@ { "path": "dist/esm/index.mjs", "limit": "2 kB" + }, + { + "path": "dist/esm/patterns/index.mjs", + "limit": "3 kB" } ]