ci: drop the redundant standalone tsc step
CI / Static checks (push) Successful in 32s
CI / Build and push image (push) Failing after 4s

Caught by the first real CI run: a bare `pnpm exec tsc --noEmit` fails
on a clean checkout because Next's own ambient types (LayoutProps and
friends, from .next/types) don't exist until a build has run at least
once. Locally this never surfaced since .next was always already
present from earlier dev/build runs. `next build` performs an
equivalent (and more complete) type check as part of its own process,
so the separate step was both redundant and the thing that broke.
This commit is contained in:
2026-08-17 15:07:07 +02:00
parent a15ac2f8dc
commit f58e7059f8
+4 -3
View File
@@ -26,9 +26,10 @@ jobs:
- name: Lint
run: pnpm lint
- name: Type check
run: pnpm exec tsc --noEmit
# `next build` runs its own full TypeScript check as part of the
# build - a separate `tsc --noEmit` here would fail on a clean
# checkout anyway, since it needs .next/types (generated by this
# same build) for Next's own ambient types like LayoutProps.
- name: Build
run: pnpm build