From f32a715a2cc0ce2c8e53bb49dbf9d59bcd13909b Mon Sep 17 00:00:00 2001 From: Pratyush Sharma <56130065+pratyush618@users.noreply.github.com> Date: Fri, 8 May 2026 06:26:58 +0530 Subject: [PATCH] ci(dashboard): verify routeTree.gen.ts is regenerated --- .github/workflows/dashboard.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index a450069..78a493a 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -30,6 +30,15 @@ jobs: - uses: actions/checkout@v6 - uses: ./.github/actions/dashboard-build + - name: Verify routeTree.gen.ts is regenerated + working-directory: ${{ github.workspace }} + run: | + if ! git diff --exit-code --quiet dashboard/src/routeTree.gen.ts; then + echo "::error::dashboard/src/routeTree.gen.ts is stale. Run 'pnpm --dir dashboard exec tsr generate' and commit the result." + git --no-pager diff dashboard/src/routeTree.gen.ts + exit 1 + fi + - name: Biome (lint + format) run: pnpm exec biome ci src/