8000 ci: fail on next-env.d.ts drift via next typegen by jasonmadigan · Pull Request #183 · tracefinity/tracefinity · GitHub
[go: up one dir, main page]

Skip to content

ci: fail on next-env.d.ts drift via next typegen - #183

Merged
jasonmadigan merged 1 commit into
mainfrom
ci/next-typegen-drift-gate
Aug 16, 2026
Merged

jasonmadigan merged 1 commit into
mainfrom
ci/next-typegen-drift-gate

Conversation

@jasonmadigan
Copy link
Copy Markdown
Collaborator

The frontend build regenerates next-env.d.ts inside the runner, so a stale committed copy never surfaced in CI (as happened after the next 16.3.1 bump in #182).

Adds two steps to the frontend lint job: run next typegen (generates route types without a full build) then git diff --exit-code -- frontend/next-env.d.ts. Fails the PR if the committed generated file drifts.

Validated locally: typegen on clean main reproduces the committed file exactly (gate passes); on the pre-fix drift it fails.

frontend build regenerates next-env.d.ts in the runner, so a stale
committed copy never surfaced in CI. run next typegen (no full build)
and git diff --exit-code to catch drift on PRs.

Signed-off-by: Jason Madigan <jason@jasonmadigan.com>
@jasonmadigan
jasonmadigan merged commit d32e481 into main Aug 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0