summaryrefslogtreecommitdiffhomepage
path: root/script/publish.ts
diff options
context:
space:
mode:
authorBrendan Allan <[email protected]>2025-12-16 23:34:44 +0800
committerGitHub <[email protected]>2025-12-16 23:34:44 +0800
commit452c991f58f0ae901594b1f8c8a87ad995c97a45 (patch)
tree6b140759c2144891c2d75adb9346b98832bfc56f /script/publish.ts
parentbe8116e2ea3aed66c9d63e0cac2af47bd3e91be5 (diff)
downloadopencode-452c991f58f0ae901594b1f8c8a87ad995c97a45.tar.gz
opencode-452c991f58f0ae901594b1f8c8a87ad995c97a45.zip
Keep release a draft until all builds are finished (#5632)
Co-authored-by: opencode <[email protected]> Co-authored-by: GitHub Action <[email protected]>
Diffstat (limited to 'script/publish.ts')
-rwxr-xr-xscript/publish.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/publish.ts b/script/publish.ts
index 29b47fa68..121da8baa 100755
--- a/script/publish.ts
+++ b/script/publish.ts
@@ -155,7 +155,7 @@ if (!Script.preview) {
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))
- await $`gh release create v${Script.version} --title "v${Script.version}" --notes ${notes.join("\n") || "No notable changes"} ./packages/opencode/dist/*.zip ./packages/opencode/dist/*.tar.gz`
+ await $`gh release create v${Script.version} -d --title "v${Script.version}" --notes ${notes.join("\n") || "No notable changes"} ./packages/opencode/dist/*.zip ./packages/opencode/dist/*.tar.gz`
const release = await $`gh release view v${Script.version} --json id,tagName`.json()
if (process.env.GITHUB_OUTPUT) {
await Bun.write(process.env.GITHUB_OUTPUT, `releaseId=${release.id}\ntagName=${release.tagName}\n`)