Skip to content

Commit 5e670d4

Browse files
committed
CI: Use compressed-size-action to report asset size changes to PRs
1 parent ef08c5a commit 5e670d4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/asset-size.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Asset Size
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: Turbo87/compressed-size-action@crates
12+
with:
13+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
14+
pattern: "dist/**/*.{js,css}"
15+
strip-hash: "-[0-9a-f]{32}"

0 commit comments

Comments
 (0)