diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml new file mode 100644 index 0000000000..ad33461afc --- /dev/null +++ b/.github/workflows/size.yml @@ -0,0 +1,16 @@ +name: Bundle Size + +on: [pull_request] + +jobs: + size: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Check compressed bundle sizes + uses: preactjs/compressed-size-action@v2 + with: + pattern: 'packages/**/dist/**/*.{js,css,json}' + exclude: '{**/*.map,**/node_modules/**,**/eslint-plugin-circuit-ui/**,**/stylelint-plugin-circuit-ui/**,**/*.index.*,**/*.module.css.js}'