summaryrefslogtreecommitdiffhomepage
path: root/script/publish-start.ts
diff options
context:
space:
mode:
Diffstat (limited to 'script/publish-start.ts')
-rwxr-xr-xscript/publish-start.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/publish-start.ts b/script/publish-start.ts
index 9f322826d..9cd6cc170 100755
--- a/script/publish-start.ts
+++ b/script/publish-start.ts
@@ -9,12 +9,12 @@ const notes = [] as string[]
console.log("=== publishing ===\n")
if (!Script.preview) {
- const previous = await fetch("https://registry.npmjs.org/opencode-ai/latest")
+ const previous = await fetch("https://api.github.com/repos/sst/opencode/releases/latest")
.then((res) => {
if (!res.ok) throw new Error(res.statusText)
return res.json()
})
- .then((data: any) => data.version)
+ .then((data: any) => data.tag_name.replace(/^v/, ""))
const log =
await $`git log v${previous}..HEAD --oneline --format="%h %s" -- packages/opencode packages/sdk packages/plugin packages/desktop packages/app`.text()