diff options
| author | Dax Raad <[email protected]> | 2026-01-30 00:43:36 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-01-30 00:43:36 -0500 |
| commit | 5bef8e316ad99e899afc6caf9f5a3056e68efa04 (patch) | |
| tree | 610875090637418b78d7a41ddd1dc343e2fd40b6 /script/version.ts | |
| parent | 08f11f4da6f16dd02024fba0914e13af7ba784c4 (diff) | |
| download | opencode-5bef8e316ad99e899afc6caf9f5a3056e68efa04.tar.gz opencode-5bef8e316ad99e899afc6caf9f5a3056e68efa04.zip | |
ci
Diffstat (limited to 'script/version.ts')
| -rwxr-xr-x | script/version.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/script/version.ts b/script/version.ts index 861417f75..723677b8c 100755 --- a/script/version.ts +++ b/script/version.ts @@ -2,12 +2,17 @@ import { Script } from "@opencode-ai/script" import { $ } from "bun" +import { buildNotes, getLatestRelease } from "./changelog" -let output = [`version=${Script.version}`] +const output = [`version=${Script.version}`] if (!Script.preview) { await $`gh release create v${Script.version} -d --title "v${Script.version}" ${Script.preview ? "--prerelease" : ""}` const release = await $`gh release view v${Script.version} --json id,tagName`.json() + const previous = await getLatestRelease(Script.version) + const notes = await buildNotes(previous, "HEAD") + const body = notes.join("\n") || "No notable changes" + await $`gh release edit v${Script.version} --draft=false --title "v${Script.version}" --notes ${body}` output.push(`release=${release.id}`) output.push(`tag=${release.tagName}`) } |
