mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Release v0.0.0-202507310417
This commit is contained in:
parent
a99681996c
commit
d0a81a02ef
2 changed files with 12 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
|||
"exports": {
|
||||
".": "./dist/index.js"
|
||||
},
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.0-202507310417",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,9 +1,19 @@
|
|||
#!/usr/bin/env bun
|
||||
|
||||
const version = process.env["OPENCODE_VERSION"]
|
||||
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/sdk/stainless/generate.ts`)
|
||||
await import(`../packages/sdk/js/script/publish.ts`)
|
||||
|
||||
await $`git commit -am "Release v${version}"`
|
||||
await $`git tag v${version}`
|
||||
await $`git push HEAD --tags`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue