diff --git a/.github/workflows/package-size-report.yaml b/.github/workflows/package-size-report.yaml new file mode 100644 index 00000000..8ebe392d --- /dev/null +++ b/.github/workflows/package-size-report.yaml @@ -0,0 +1,30 @@ +name: Package Size Report + +on: + pull_request: + types: [opened, ready_for_review] + branches: [main, release/*] + +permissions: + pull-requests: write + +jobs: + pkg-size-report: + name: Package Size Report + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '18' + + - name: Package size report + uses: pkg-size/action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + hide-files: '!/build/assets/cwr.js' +