Skip to content

Commit

Permalink
feat: 1
Browse files Browse the repository at this point in the history
  • Loading branch information
lgz5689 committed Jun 6, 2024
1 parent 05985ef commit 2a0d881
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 50 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/size-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ jobs:
id: size-previous
working-directory: main-code
run: |
set -e
node main-code/scripts/size-report.mjs
echo "PREVIOUS_SIZE=$(node scripts/size-report.mjs)" >> $GITHUB_ENV
PREVIOUS_SIZE=$(pnpm tsx scripts/size-report.ts)
echo "PREVIOUS_SIZE=$(PREVIOUS_SIZE)" >> $GITHUB_ENV
- name: Checkout PR code
uses: actions/checkout@v4
Expand All @@ -58,9 +57,8 @@ jobs:
- name: Calculate current size
id: size-current
run: |
set -e
node main-code/scripts/size-report.mjs
echo "CURRENT_SIZE=$(node scripts/size-report.mjs)" >> $GITHUB_ENV
CURRENT_SIZE=$(pnpm tsx scripts/size-report.ts)
echo "CURRENT_SIZE=$(CURRENT_SIZE)" >> $GITHUB_ENV
- name: Display size difference
run: |
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"eslint-plugin-react-refresh": "^0.4.5",
"husky": "^8.0.3",
"prettier": "^3.2.2",
"tsx": "^4.12.0",
"typescript": "^5.2.2",
"vite": "^5.0.8",
"vite-electron-plugin": "^0.8.3"
Expand Down
Loading

0 comments on commit 2a0d881

Please sign in to comment.