From d58661d4fb4be22f2188fb3619c2b8f75f5b40ac Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 30 Jan 2026 01:15:24 -0500 Subject: ci --- script/version.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'script/version.ts') diff --git a/script/version.ts b/script/version.ts index 2c158d222..1b7eac5d9 100755 --- a/script/version.ts +++ b/script/version.ts @@ -7,12 +7,14 @@ import { buildNotes, getLatestRelease } from "./changelog" 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 previous = await getLatestRelease() const notes = await buildNotes(previous, "HEAD") const body = notes.join("\n") || "No notable changes" - await $`gh release edit v${Script.version} --title "v${Script.version}" --notes ${body}` + const dir = process.env.RUNNER_TEMP ?? "/tmp" + const file = `${dir}/opencode-release-notes.txt` + await Bun.write(file, body) + await $`gh release create v${Script.version} -d --title "v${Script.version}" --notes-file ${file}` + const release = await $`gh release view v${Script.version} --json id,tagName`.json() output.push(`release=${release.id}`) output.push(`tag=${release.tagName}`) } @@ -20,3 +22,5 @@ if (!Script.preview) { if (process.env.GITHUB_OUTPUT) { await Bun.write(process.env.GITHUB_OUTPUT, output.join("\n")) } + +process.exit(0) -- cgit v1.2.3