mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 23:04:55 +00:00
sync
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
#!/usr/bin/env bun
|
|
||||||
|
|
||||||
import { Script } from "@opencode-ai/script"
|
|
||||||
import { $ } from "bun"
|
|
||||||
|
|
||||||
if (!Script.preview) {
|
|
||||||
await $`gh release edit v${Script.version} --draft=false`
|
|
||||||
}
|
|
||||||
|
|
||||||
await $`bun install`
|
|
||||||
|
|
||||||
await $`gh release download --pattern "opencode-linux-*64.tar.gz" --pattern "opencode-darwin-*64.zip" -D dist`
|
|
||||||
|
|
||||||
await import(`../packages/opencode/script/publish-registries.ts`)
|
|
||||||
@@ -32,16 +32,8 @@ Add highlights before publishing. Delete this section if no highlights.
|
|||||||
|
|
||||||
`
|
`
|
||||||
|
|
||||||
let notes: string[] = []
|
|
||||||
|
|
||||||
console.log("=== publishing ===\n")
|
console.log("=== publishing ===\n")
|
||||||
|
|
||||||
if (!Script.preview) {
|
|
||||||
const previous = await getLatestRelease()
|
|
||||||
notes = await buildNotes(previous, "HEAD")
|
|
||||||
// notes.unshift(highlightsTemplate)
|
|
||||||
}
|
|
||||||
|
|
||||||
const pkgjsons = await Array.fromAsync(
|
const pkgjsons = await Array.fromAsync(
|
||||||
new Bun.Glob("**/package.json").scan({
|
new Bun.Glob("**/package.json").scan({
|
||||||
absolute: true,
|
absolute: true,
|
||||||
@@ -66,6 +58,9 @@ await $`bun install`
|
|||||||
await import(`../packages/sdk/js/script/build.ts`)
|
await import(`../packages/sdk/js/script/build.ts`)
|
||||||
|
|
||||||
if (Script.release) {
|
if (Script.release) {
|
||||||
|
const previous = await getLatestRelease()
|
||||||
|
const notes = await buildNotes(previous, "HEAD")
|
||||||
|
// notes.unshift(highlightsTemplate)
|
||||||
await $`git commit -am "release: v${Script.version}"`
|
await $`git commit -am "release: v${Script.version}"`
|
||||||
await $`git tag v${Script.version}`
|
await $`git tag v${Script.version}`
|
||||||
await $`git fetch origin`
|
await $`git fetch origin`
|
||||||
|
|||||||
Reference in New Issue
Block a user