Skip to content

Commit 24f5198

Browse files
committed
ci: trust restored gateway watch artifacts
1 parent 51ed22e commit 24f5198

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/check-gateway-watch-regression.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,10 @@ async function main() {
588588
// Refresh the build stamp after the gateway build finishes so run-node
589589
// does not spuriously rebuild inside the bounded watch window.
590590
writeBuildStamp({ cwd: process.cwd() });
591+
} else {
592+
// Restored CI artifacts can be older than the fresh checkout mtimes.
593+
// Refresh only the stamp so run-node trusts the already-built dist.
594+
writeBuildStamp({ cwd: process.cwd() });
591595
}
592596

593597
const preflightBuildRequirement = resolveBuildRequirement(buildRunNodeDeps(process.env));

0 commit comments

Comments
 (0)