diff --git a/script/publish.ts b/script/publish.ts index 8ab9f96e95c..3ca9b355ae6 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -99,7 +99,9 @@ if (Script.release) { // Use an absolute path for the CHANGELOG because the imported SDK build // script chdirs into packages/sdk/js, so a relative path would miss the file // and fall through to the "No notable changes" default. + const kind = Script.preview ? "pre-release" : "release" const flags = Script.preview ? ["--draft=false", "--prerelease"] : ["--draft=false"] + flags.push("--title", `v${Script.version} (${kind})`) const changelogPath = fileURLToPath(new URL("../packages/kilo-vscode/CHANGELOG.md", import.meta.url)) const changelog = await Bun.file(changelogPath) .text()