Skip to content

feat: update demo

feat: update demo #19

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
- run: pnpm test -- --coverage
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
- run: pnpm build
- name: Check bundle size
run: |
SIZE=$(wc -c < dist/index.cjs)
echo "Bundle size: ${SIZE} bytes"
if [ "$SIZE" -gt 1750 ]; then
echo "Bundle too large: ${SIZE}b > 1750b"
exit 1
fi