summaryrefslogtreecommitdiffhomepage
path: root/script/publish.ts
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-01-30 00:39:23 -0500
committerDax Raad <[email protected]>2026-01-30 00:39:23 -0500
commit9e0747c9b4ec41e7ba5dbe6891770cfa600f768d (patch)
treee26fc54c11a69ae60af3c9371fc47ff6310e8c36 /script/publish.ts
parent66ec378680e420581e2b14a6b6558c61f606dbd6 (diff)
downloadopencode-9e0747c9b4ec41e7ba5dbe6891770cfa600f768d.tar.gz
opencode-9e0747c9b4ec41e7ba5dbe6891770cfa600f768d.zip
ci
Diffstat (limited to 'script/publish.ts')
-rwxr-xr-xscript/publish.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/publish.ts b/script/publish.ts
index 23a6e5c9d..5fa84825b 100755
--- a/script/publish.ts
+++ b/script/publish.ts
@@ -58,8 +58,6 @@ await $`bun install`
await import(`../packages/sdk/js/script/build.ts`)
if (Script.release) {
- const previous = await getLatestRelease()
- const notes = await buildNotes(previous, "HEAD")
// notes.unshift(highlightsTemplate)
await $`git commit -am "release: v${Script.version}"`
await $`git tag v${Script.version}`
@@ -67,6 +65,9 @@ if (Script.release) {
await $`git cherry-pick HEAD..origin/dev`.nothrow()
await $`git push origin HEAD --tags --no-verify --force-with-lease`
await new Promise((resolve) => setTimeout(resolve, 5_000))
+ const previous = await getLatestRelease()
+ console.log("previous", previous)
+ const notes = await buildNotes(previous, "dev")
await $`gh release edit v${Script.version} --draft=false --title "v${Script.version}" --notes ${notes.join("\n") || "No notable changes"}`
}