Snapshot release v0.0.0-202508022053

This commit is contained in:
Dax Raad
2025-08-02 16:53:25 -04:00
parent 09c4b71632
commit 1f9e8cc4a5
9 changed files with 18 additions and 17 deletions

View File

@@ -5,19 +5,14 @@ process.chdir(dir)
import { $ } from "bun"
const version = process.env["OPENCODE_VERSION"]
if (!version) {
throw new Error("OPENCODE_VERSION is required")
}
const snapshot = process.env["OPENCODE_SNAPSHOT"] === "true"
await $`bun tsc`
await $`bun pm version --allow-same-version --no-git-tag-version ${version}`
if (snapshot) {
await $`bun publish --tag snapshot`
await $`bun publish --tag snapshot --access public`
await $`git checkout package.json`
}
if (!snapshot) {
await $`bun publish`
await $`bun publish --access public`
}