mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
chdir before creating release
This commit is contained in:
parent
27a92e40b0
commit
8a03310008
1 changed files with 3 additions and 3 deletions
|
|
@ -54,6 +54,9 @@ await import(`../packages/sdk/js/script/publish.ts`)
|
|||
console.log("\n=== plugin ===\n")
|
||||
await import(`../packages/plugin/script/publish.ts`)
|
||||
|
||||
const dir = new URL("..", import.meta.url).pathname
|
||||
process.chdir(dir)
|
||||
|
||||
if (!Script.preview) {
|
||||
await $`git commit -am "release: v${Script.version}"`
|
||||
await $`git tag v${Script.version}`
|
||||
|
|
@ -67,6 +70,3 @@ if (!Script.preview) {
|
|||
await Bun.write(process.env.GITHUB_OUTPUT, `releaseId=${release.id}\ntagName=${release.tagName}\n`)
|
||||
}
|
||||
}
|
||||
|
||||
const dir = new URL("..", import.meta.url).pathname
|
||||
process.chdir(dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue