Deployment Workflow
Pipeline (mandatory order)
Dev → Staging → [VERIFY on staging] → [GET EXPLICIT APPROVAL] → Production
Commands
- Development:
npm run deploy:dev - Staging:
npm run deploy:staging - Production:
npm run deploy:production⚠️ REQUIRES EXPLICIT APPROVAL
NEVER run raw firebase deploy. Anti-patterns #1, #11, #12.
Pre-Deploy Checklist
-
npm run test -- --runpasses -
npm run lintclean -
npx tsc --noEmitclean -
npm run test:e2epasses (for staging/production) - Dashboard parity:
curl -s http://localhost:3001/api/parity
Staging Verification (before production)
- Dev: blue "DEVELOPMENT ENVIRONMENT" banner
- Staging: yellow "STAGING ENVIRONMENT" banner
- Finance page transaction list renders correctly
- Dark mode: no white edges on cards
- Mobile swipe actions work
- Commitments task boxes compact
- Empty states: no excessive scrolling
Post-Deploy
git commit --allow-empty -m "deploy(ENV): vVERSION @ $(git rev-parse --short HEAD)"
curl -s http://localhost:3001/api/parity
Converted and distributed by TomeVault — claim your Tome and manage your conversions.