Shorten Size Limit job

This commit is contained in:
Nikita Karamov 2023-12-07 17:15:54 +01:00
parent c1dfacdcd4
commit c35a7d5a81
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
1 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
name: Size Limit name: Size Limit
on: on:
pull_request: pull_request:
branches: branches:
@ -15,16 +16,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - 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 - uses: pnpm/action-setup@v2
with: with:
version: latest version: 8
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 20 node-version: 20
cache: pnpm cache: pnpm
- name: Install dependencies - name: Check package size
run: pnpm install --ignore-scripts
- name: Check size
uses: andresz1/size-limit-action@v1 uses: andresz1/size-limit-action@v1
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}