Skip to content

fix: harden commitment creation wizard and draft recovery #763

fix: harden commitment creation wizard and draft recovery

fix: harden commitment creation wizard and draft recovery #763

Workflow file for this run

# .github/workflows/size-limit.yml
# Enforces a per-entry client bundle-size budget with size-limit.
#
# size-limit measures the production build output, so this job builds the app
# and then checks the gzipped chunk sizes against .size-limit.json. It fails
# when a budget is exceeded.
#
# NOTE: this requires a successful `next build`. See docs/performance/BUNDLE_BUDGET.md.
#
# Non-blocking for now (continue-on-error below): `npm run build` currently
# fails on master for reasons unrelated to bundle size - see the header
# comment in .github/workflows/lighthouse.yml for the root cause (pre-existing
# missing app-shell/feature files from prior merges). Remove continue-on-error
# once the build is healthy again.
name: Size Limit
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
size-limit:
name: size-limit
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
# See header comment: non-blocking until the pre-existing broken build
# (unrelated to bundle size) is fixed.
- name: Build
run: npm run build
continue-on-error: true
env:
# Builds must be deterministic for size comparison.
NODE_ENV: production
- name: Check bundle size budget
run: npm run size
continue-on-error: true