From 2d9ed06367516daa184ecf70bb0b2451c06da8d1 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 31 Jul 2025 01:25:24 -0400 Subject: ci: scripts --- scripts/publish.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 scripts/publish.ts (limited to 'scripts/publish.ts') diff --git a/scripts/publish.ts b/scripts/publish.ts deleted file mode 100755 index 13716b014..000000000 --- a/scripts/publish.ts +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bun - -import { $ } from "bun" - -const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true" -const version = snapshot - ? `0.0.0-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}` - : process.env["OPENCODE_VERSION"] -if (!version) { - throw new Error("OPENCODE_VERSION is required") -} -process.env["OPENCODE_VERSION"] = version - -await import(`../packages/opencode/script/publish.ts`) -await import(`../packages/sdk/stainless/generate.ts`) -await import(`../packages/sdk/js/script/publish.ts`) - -if (!snapshot) { - await $`git commit -am "Release v${version}"` - await $`git tag v${version}` - await $`git push origin HEAD --tags` -} -if (snapshot) { - await $`git commit --allow-empty -m "Snapshot release v${version}"` - await $`git tag v${version}` - await $`git push origin v${version}` - await $`git reset --soft HEAD~1` -} -- cgit v1.2.3