From c35a7d5a81b2c4e8fe7af1e222709eb433a0a3dc Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Thu, 7 Dec 2023 17:15:54 +0100 Subject: [PATCH] Shorten Size Limit job --- .github/workflows/size.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index 8f19941..7f2672a 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -1,4 +1,5 @@ name: Size Limit + on: pull_request: branches: @@ -15,16 +16,16 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Fetch Git refs + run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* - uses: pnpm/action-setup@v2 with: - version: latest + version: 8 - uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm - - name: Install dependencies - run: pnpm install --ignore-scripts - - name: Check size + - name: Check package size uses: andresz1/size-limit-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }}