Skip to content

Commit 4b24128

Browse files
author
Gustav Hansen
committed
GitHub: Add bundle-size PR reporter
1 parent 45b4f8e commit 4b24128

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/bundle-size.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Bundle-size
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**/strapi-design-system/**.js'
7+
- '**/strapi-icon/**.js'
8+
- '**/yarn.lock'
9+
10+
jobs:
11+
size:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: 18
20+
cache: yarn
21+
22+
- uses: preactjs/compressed-size-action@v2
23+
with:
24+
pattern: '**/dist/**/*.{js,svg}'

0 commit comments

Comments
 (0)