Add a GH Actions workflow to validate that generated schemas are in sync with generator scripts. This will catch broken Zod schemas before publish, validate that schemas are regenerated when generator logic changes, and prevents stale/mismatched schemas.
Acceptance Criteria:
- TypeScript compilation - Zod schemas should compile without errors
- Schema consistency - Committed should schemas match generator output (dev MUST run
npm run build after updating generators, otherwise will fail)
Workflow:
on: [pull_request, push]
steps:
- npm ci
- npm run build
- git diff --exit-code # Fail if schemas don't match
- npx tsc --noEmit zod/index.ts # Fail if TS errors
Add a GH Actions workflow to validate that generated schemas are in sync with generator scripts. This will catch broken Zod schemas before publish, validate that schemas are regenerated when generator logic changes, and prevents stale/mismatched schemas.
Acceptance Criteria:
npm run buildafter updating generators, otherwise will fail)Workflow: