From 4e0b31cd045731ba0fc48dab2348bc5891a23e8e Mon Sep 17 00:00:00 2001 From: "kiloconnect[bot]" <240665456+kiloconnect[bot]@users.noreply.github.com> Date: Thu, 16 Apr 2026 13:27:34 +0000 Subject: [PATCH] fix: include changelog and release notes for prereleases too --- script/publish.ts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/script/publish.ts b/script/publish.ts index 37b4728393..088ecc118d 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -37,7 +37,7 @@ console.log("=== publishing ===\n") // kilocode_change start - consume changesets on the publish runner so changelog // changes are included in the release commit. Previously this ran in the // version job on a separate runner whose workspace was discarded. -if (!Script.preview) { +{ await $`bun install` const paths = ["packages/kilo-vscode/CHANGELOG.md", "packages/opencode/CHANGELOG.md"] const before = new Map() @@ -107,16 +107,14 @@ if (Script.release) { // kilocode_change start - mark prerelease GitHub releases accordingly // and populate release notes from the changelog updated by changeset above const flags = Script.preview ? ["--draft=false", "--prerelease"] : ["--draft=false"] - if (!Script.preview) { - const changelog = await Bun.file("packages/kilo-vscode/CHANGELOG.md") - .text() - .catch(() => "") - const body = extractLatestSection(changelog) || "No notable changes" - const dir = process.env.RUNNER_TEMP ?? "/tmp" - const notes = `${dir}/release-notes.txt` - await Bun.write(notes, body) - flags.push("--notes-file", notes) - } + const changelog = await Bun.file("packages/kilo-vscode/CHANGELOG.md") + .text() + .catch(() => "") + const body = extractLatestSection(changelog) || "No notable changes" + const tmp = process.env.RUNNER_TEMP ?? "/tmp" + const notes = `${tmp}/release-notes.txt` + await Bun.write(notes, body) + flags.push("--notes-file", notes) await $`gh release edit v${Script.version} ${flags} --repo ${process.env.GH_REPO}` // kilocode_change end }