Skip to content

Commit c791062

Browse files
committed
ci: use native bundle size check in workflow
1 parent db37b47 commit c791062

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,11 @@ jobs:
106106

107107
- name: Check bundle size
108108
run: |
109-
pnpm run --silent size:check > /tmp/size-results.json; SIZE_EXIT=$?
110109
{
111110
echo '### Bundle Size Report'
112111
echo ''
113-
echo '| Package | Size | Limit | Status |'
114-
echo '|---------|------|-------|--------|'
115-
jq -r '.[] | "| \(.name | gsub("[|<>\\[\\]\\\\]"; "")) | \((.size / 1000 * 100 | round) / 100) KB | \((.sizeLimit / 1000 * 100 | round) / 100) KB | \(if .passed then "Pass" else "FAIL" end) |"' /tmp/size-results.json
112+
pnpm run size
116113
} >> "$GITHUB_STEP_SUMMARY"
117-
exit $SIZE_EXIT
118114
119115
- name: Upload coverage artifacts
120116
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0

0 commit comments

Comments
 (0)