CI
This commit is contained in:
parent
fd56d8da8d
commit
b4d25efbb9
1 changed files with 2 additions and 2 deletions
|
|
@ -9,12 +9,12 @@ const notes = [] as string[]
|
||||||
console.log("=== publishing ===\n")
|
console.log("=== publishing ===\n")
|
||||||
|
|
||||||
if (!Script.preview) {
|
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) => {
|
.then((res) => {
|
||||||
if (!res.ok) throw new Error(res.statusText)
|
if (!res.ok) throw new Error(res.statusText)
|
||||||
return res.json()
|
return res.json()
|
||||||
})
|
})
|
||||||
.then((data: any) => data.version)
|
.then((data: any) => data.tag_name.replace(/^v/, ""))
|
||||||
|
|
||||||
const log =
|
const log =
|
||||||
await $`git log v${previous}..HEAD --oneline --format="%h %s" -- packages/opencode packages/sdk packages/plugin packages/desktop packages/app`.text()
|
await $`git log v${previous}..HEAD --oneline --format="%h %s" -- packages/opencode packages/sdk packages/plugin packages/desktop packages/app`.text()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue