summaryrefslogtreecommitdiffhomepage
path: root/script
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-10-15 19:59:46 -0400
committerDax Raad <[email protected]>2025-10-15 19:59:46 -0400
commit4c674b075b9c6fefc9dee2405456f5dc5fc1d43e (patch)
treeb92c393218d820cc4145f22c0e271be49838e006 /script
parentba8a4c5e9f48fae965114d4e959fdbb9c5b44a12 (diff)
downloadopencode-4c674b075b9c6fefc9dee2405456f5dc5fc1d43e.tar.gz
opencode-4c674b075b9c6fefc9dee2405456f5dc5fc1d43e.zip
ci: stuff
Diffstat (limited to 'script')
-rwxr-xr-xscript/publish.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/script/publish.ts b/script/publish.ts
index a4296ec4b..c1c705e8c 100755
--- a/script/publish.ts
+++ b/script/publish.ts
@@ -74,7 +74,6 @@ const pkgjsons = await Array.fromAsync(
}),
).then((arr) => arr.filter((x) => !x.includes("node_modules") && !x.includes("dist")))
-const tree = await $`git add . && git write-tree`.text().then((x) => x.trim())
for (const file of pkgjsons) {
let pkg = await Bun.file(file).text()
pkg = pkg.replaceAll(/"version": "[^"]+"/g, `"version": "${Script.version}"`)
@@ -104,14 +103,3 @@ if (!Script.preview) {
await $`gh release create v${Script.version} --title "v${Script.version}" --notes ${notes.join("\n") ?? "No notable changes"} ./packages/opencode/dist/*.zip`
}
-if (Script.preview) {
- await $`git checkout -b snapshot-${Script.version}`
- await $`git commit --allow-empty -m "Snapshot release v${Script.version}"`
- await $`git tag v${Script.version}`
- await $`git push origin v${Script.version} --no-verify`
- await $`git checkout dev`
- await $`git branch -D snapshot-${Script.version}`
- for (const file of pkgjsons) {
- await $`git checkout ${tree} ${file}`
- }
-}