From 7b2a221212a8c04ac4220d7fd257eb38efbe8ccc Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Santana Date: Thu, 5 Feb 2026 21:22:27 -0500 Subject: [PATCH] chore: run lint step after build during preflight check --- src/infra/update-runner.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/infra/update-runner.ts b/src/infra/update-runner.ts index 498af09bc..bbb12ed40 100644 --- a/src/infra/update-runner.ts +++ b/src/infra/update-runner.ts @@ -611,14 +611,6 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise< continue; } - const lintStep = await runStep( - step(`preflight lint (${shortSha})`, managerScriptArgs(manager, "lint"), worktreeDir), - ); - steps.push(lintStep); - if (lintStep.exitCode !== 0) { - continue; - } - const buildStep = await runStep( step(`preflight build (${shortSha})`, managerScriptArgs(manager, "build"), worktreeDir), ); @@ -627,6 +619,14 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise< continue; } + const lintStep = await runStep( + step(`preflight lint (${shortSha})`, managerScriptArgs(manager, "lint"), worktreeDir), + ); + steps.push(lintStep); + if (lintStep.exitCode !== 0) { + continue; + } + selectedSha = sha; break; }