run-release-browser-gate.ts
1import { resolveBin } from "./release-lib";2import { assertValidPlaywrightJsonReport } from "./release-gate";34const result = Bun.spawnSync([5 resolveBin("playwright"),6 "test",7 "--project=chrome-release",8 "--project=firefox-release",9 "--reporter=json",10], {11 stdout: "pipe",12 stderr: "inherit",13 env: { ...process.env, PEACH_RELEASE_BROWSER_GATE: "1" },14});15if (result.exitCode !== 0) process.exit(result.exitCode);16assertValidPlaywrightJsonReport(JSON.parse(result.stdout.toString()));