Bump version to 0.11.2025011801+0c3f2d #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bencher File Sizes | |
on: | |
push: | |
branches: main | |
jobs: | |
file_sizes: | |
name: Continuous Monitoring of file sizes | |
permissions: | |
checks: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'npm' | |
- uses: bencherdev/bencher@main | |
- run: npm ci | |
- run: npm run build | |
- name: Build npm zero package | |
working-directory: packages/zero | |
run: | | |
npm pack --pack-destination ./out | |
mv ./out/*.tgz ./out/zero-package.tgz | |
- name: Build zero client single file package | |
working-directory: packages/zero | |
run: node tool/build.js --bundle-sizes --minify | |
- name: Compress | |
working-directory: packages/zero | |
run: brotli out/zero.js | |
- name: Track benchmarks with Bencher | |
working-directory: packages/zero | |
run: | | |
bencher run \ | |
--project zero-file-sizes \ | |
--token '${{ secrets.BENCHER_API_TOKEN }}' \ | |
--adapter json \ | |
--github-actions '${{ secrets.GITHUB_TOKEN }}' \ | |
--start-point main \ | |
--start-point-max-versions 1 \ | |
--threshold-measure file-size \ | |
--threshold-test percentage \ | |
--threshold-upper-boundary 0.02 \ | |
--err \ | |
--file-size out/zero-package.tgz \ | |
--file-size out/zero.js.br \ | |
--file-size out/zero.js |