diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2518520..e74c6fa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,3 +36,9 @@ jobs: - name: Build run: yarn build + + - name: Check size + if: ${{ github.event_name == 'pull_request' && github.base_ref == 'master'}} + uses: andresz1/size-limit-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml deleted file mode 100644 index f2027db..0000000 --- a/.github/workflows/size.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: size -on: - pull_request: - branches: - - master -jobs: - size: - runs-on: ubuntu-latest - env: - CI_JOB_NUMBER: 1 - steps: - - uses: actions/checkout@v1 - - uses: andresz1/size-limit-action@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }}