diff --git a/.github/workflows/bundling-size.yml b/.github/workflows/bundling-size.yml new file mode 100644 index 00000000..b1957b10 --- /dev/null +++ b/.github/workflows/bundling-size.yml @@ -0,0 +1,34 @@ +name: bundling-size + +on: + pull_request: + types: [opened, ready_for_review] + branches: + - main + +jobs: + check-size: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install Pnpm + uses: pnpm/action-setup@v3 + with: + version: 8 + run_install: false + + - name: Check Sizes + uses: preactjs/compressed-size-action@2.7.0 + with: + repo-token: "${{ secrets.TOKEN }}" + pattern: "./packages/wow-ui/dist/**/*" + compression: "none" +