-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (30 loc) · 907 Bytes
/
size-limit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Size limit
on:
pull_request:
branches: [ main ]
permissions:
pull-requests: write
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
strategy:
matrix:
node-version: [20]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Use pnpm and install dependencies
uses: pnpm/action-setup@v2
- run: pnpm install --no-frozen-lockfile
- name: Use Size limit
uses: andresz1/size-limit-action@dd31dce7dcc72a041fd3e49abf0502b13fc4ce05 # support for pnpm
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: build
package_manager: pnpm