mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-29 21:33:54 +00:00
fix: script
This commit is contained in:
parent
12ae1cb9b5
commit
3581538902
@ -14,6 +14,7 @@ const TFCODE_VERSION = pkg.version
|
||||
const GITEA_HOST = process.env.GITEA_HOST || "gitea.toothfairyai.com"
|
||||
const GITEA_TOKEN = process.env.GITEA_TOKEN
|
||||
const GITEA_REPO = process.env.GITEA_REPO || "ToothFairyAI/tf_code"
|
||||
const NPM_TAG = process.env.NPM_TAG || "latest"
|
||||
|
||||
// Collect binaries
|
||||
const binaries: Record<string, string> = {}
|
||||
@ -176,11 +177,11 @@ child.on('exit', (code) => process.exit(code || 0))
|
||||
|
||||
for (const [name, version] of Object.entries(binaries)) {
|
||||
console.log(`Publishing ${name}...`)
|
||||
await $`cd ./dist/${name.replace("@toothfairyai/", "")} && bun pm pack && npm publish *.tgz --access public --tag beta`
|
||||
await $`cd ./dist/${name.replace("@toothfairyai/", "")} && bun pm pack && npm publish *.tgz --access public --tag ${NPM_TAG}`
|
||||
}
|
||||
|
||||
console.log("Publishing main package...")
|
||||
await $`cd ./dist/tfcode && bun pm pack && npm publish *.tgz --access public --tag beta`
|
||||
await $`cd ./dist/tfcode && bun pm pack && npm publish *.tgz --access public --tag ${NPM_TAG}`
|
||||
}
|
||||
|
||||
// Create Homebrew formula
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user