From 8f3d10976275f79450cc433a1da79645aed42172 Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Wed, 2 Oct 2024 11:53:23 -0500 Subject: [PATCH] Use `EskiMojo14/size-limit-action` during CI --- .github/workflows/size.yaml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/size.yaml b/.github/workflows/size.yaml index 86fe36bf8..7e83c2848 100644 --- a/.github/workflows/size.yaml +++ b/.github/workflows/size.yaml @@ -1,16 +1,25 @@ -name: Bundle Size +name: size -on: [pull_request] +on: + pull_request: + branches: + - master + +permissions: + pull-requests: write jobs: - build: + size: name: Check compressed size runs-on: ubuntu-latest - + env: + CI_JOB_NUMBER: 1 steps: - uses: actions/checkout@v4 + - uses: EskiMojo14/size-limit-action@v2 with: - fetch-depth: 1 - - uses: preactjs/compressed-size-action@v2 - with: - repo-token: '${{ secrets.GITHUB_TOKEN }}' + directory: . + github_token: ${{ secrets.GITHUB_TOKEN }} + build_script: build + package_manager: yarn + size_margin: non-zero