Skip to content

Commit 2aa274c

Browse files
committed
use the action (pkg-size/action) with nicer output
1 parent d15c797 commit 2aa274c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/package-size.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v6
2121
- uses: ./.github/actions/setup
22-
- uses: preactjs/compressed-size-action@v2
22+
- uses: pkg-size/action@v1
2323
with:
24-
compression: "brotli"
25-
pattern: "./{dist,dist-prod}/**/*"
26-
minimum-change-threshold: 60
24+
build-command: "pnpm build"
25+
display-size: uncompressed, brotli
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)