shareon-pulsanti-condivisio.../.github/workflows/size.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
657 B
YAML
Raw Normal View History

2023-11-20 08:51:54 +01:00
name: Size Limit
2023-12-07 17:15:54 +01:00
2023-11-20 08:51:54 +01:00
on:
pull_request:
branches:
- main
permissions:
pull-requests: write
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v4
2023-12-07 17:15:54 +01:00
- name: Fetch Git refs
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
2023-11-20 08:51:54 +01:00
- uses: pnpm/action-setup@v2
with:
2023-12-07 17:15:54 +01:00
version: 8
2023-11-20 08:51:54 +01:00
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
2023-12-07 17:15:54 +01:00
- name: Check package size
2023-11-20 09:14:04 +01:00
uses: andresz1/size-limit-action@v1
2023-11-20 08:51:54 +01:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}