Skip to content

Commit 61f3a7a

Browse files
author
Gustav Hansen
authored
Merge pull request #742 from strapi/enhance/bundle-size
GitHub: Add bundle-size PR reporter
2 parents 45b4f8e + 3b90bc9 commit 61f3a7a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/bundle-size.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Bundle-size
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
size:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 14
18+
cache: yarn
19+
20+
- uses: ./.github/actions/install-modules
21+
22+
- name: Link locale packages and install their dependencies
23+
run: yarn bootstrap
24+
25+
- name: Build packages
26+
run: yarn build
27+
28+
- uses: preactjs/compressed-size-action@v2
29+
with:
30+
pattern: '**/dist/**/*.{cjs,js,svg}'

0 commit comments

Comments
 (0)