desktop: add latest.json finalizer script (#15335)

This commit is contained in:
Brendan Allan 2026-02-27 20:18:21 +08:00 committed by GitHub
commit 967313234a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 160 additions and 1 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bun
import { $ } from "bun"
import { Script } from "@opencode-ai/script"
import { $ } from "bun"
import { fileURLToPath } from "url"
const highlightsTemplate = `
@ -67,6 +67,8 @@ if (Script.release) {
await new Promise((resolve) => setTimeout(resolve, 5_000))
}
await import(`../packages/desktop/scripts/finalize-latest-json.ts`)
await $`gh release edit v${Script.version} --draft=false --repo ${process.env.GH_REPO}`
}