diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml new file mode 100644 index 00000000000..53ed9348040 --- /dev/null +++ b/.github/workflows/size.yml @@ -0,0 +1,17 @@ +name: Size +on: [pull_request] +jobs: + size: + name: Size + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + env: + CI_JOB_NUMBER: 1 + steps: + - uses: actions/checkout@v4 + - uses: andresz1/size-limit-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + build_script: build diff --git a/package.json b/package.json index 06d178028d5..4a2d883dad0 100644 --- a/package.json +++ b/package.json @@ -102,15 +102,10 @@ "prettier": "@github/prettier-config", "size-limit": [ { - "path": "packages/react/dist/browser.esm.js", - "webpack": false, - "running": false - }, - { - "path": "packages/react/dist/browser.umd.js", + "path": "packages/react/dist/index.js", "webpack": false, "running": false } ], "packageManager": "npm@11.6.3+sha512.4085a763162e0e3acd19a4e9d23ad3aa0978e501ccf947dd7233c12a689ae0bb0190763c4ef12366990056b34eec438903ffed38fde4fbd722a17c2a7407ee92" -} \ No newline at end of file +}