-
-
Notifications
You must be signed in to change notification settings - Fork 98
55 lines (50 loc) · 1.42 KB
/
bundle_size.yml
File metadata and controls
55 lines (50 loc) · 1.42 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Bundle Size
on:
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
paths:
- 'packages/**'
- 'yarn.lock'
- 'examples/test-bundlesize/**'
- '.github/workflows/bundle_size.yml'
push:
branches:
- master
paths:
- 'packages/**'
- 'yarn.lock'
- 'examples/test-bundlesize/**'
- '.github/workflows/bundle_size.yml'
concurrency:
group: bundle-size-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
- uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'yarn'
- name: Install packages
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: true
run: |
# npm pkg delete workspaces[5]
# npm pkg delete workspaces[4]
# npm pkg delete workspaces[3]
# npm pkg delete workspaces[1]
corepack enable
- name: compressed-size-action
uses: preactjs/compressed-size-action@v2
continue-on-error: true
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
build-script: "ci:build:bundlesize"
pattern: "examples/test-bundlesize/dist/**/*.{js,json}"
exclude: "{examples/test-bundlesize/dist/manifest.json,**/*.LICENSE.txt,**/*.map,**/node_modules/**}"
minimum-change-threshold: 8