-
-
Notifications
You must be signed in to change notification settings - Fork 179
25 lines (25 loc) · 752 Bytes
/
size.yml
File metadata and controls
25 lines (25 loc) · 752 Bytes
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
name: Size
on: [pull_request]
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Dependencies
run: bun install --frozen-lockfile
- name: Prepare wouter-preact (copy source files)
run: cd packages/wouter-preact && npm run prepublishOnly
- name: Symlink npm to bun
run: |
sudo ln -sf $(which bun) /usr/local/bin/npm
sudo ln -sf $(which bunx) /usr/local/bin/npx
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: install
build_script: build