Skip to content

Commit

Permalink
chore: increase the speed of the size action in CI (#1132)
Browse files Browse the repository at this point in the history
# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

Improve CI speed through the prepack script.

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.
  • Loading branch information
kangju2000 authored Jul 25, 2024
1 parent 8449980 commit 2b74302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
- if: matrix.command == 'prepack'
uses: preactjs/compressed-size-action@v2
with:
build-script: 'prepack'
pattern: 'packages/**/dist/*.{js,cjs,mjs}'
exclude: '{**/*.map,**/node_modules/**}'
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -61,3 +62,5 @@ jobs:
with:
working-directory: ./websites/visualization
comment-strategy: 'always'
create-issue: false
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"ci:test:watch": "turbo run ci:test:watch --parallel",
"ci:type": "turbo run ci:type",
"ci:knip": "pnpm prepack && pnpm knip",
"ci:size": "pnpm prepack && pnpm --filter ./websites/visualization build",
"clean": "turbo run clean",
"dev": "turbo run dev --concurrency 20",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
Expand Down

0 comments on commit 2b74302

Please sign in to comment.