Skip to content

Commit

Permalink
bundlesize
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Jan 16, 2025
1 parent e354f71 commit 419d197
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build && bundlesize
- run: npm run build
- run: npm run bundlesize
- name: Save build
if: matrix.node-version == '18.x'
uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"lint": "eslint 'src/**/*.ts'",
"lint-fix": "eslint 'src/**/*.ts' --fix",
"test": "npm run lint",
"prepublishOnly": "npm test && npm run build && bundlesize",
"prepublishOnly": "npm test && npm run build && npm run bundlesize",
"bundlesize": "bundlesize",
"postpublish": "git push origin main --follow-tags",
"startStaticOS": "webpack serve --mode=production --config webpack.config.js --open /browse.html"
},
Expand Down

0 comments on commit 419d197

Please sign in to comment.