From 3581538902a6a5f7d471aa8b949a887e64c2a94d Mon Sep 17 00:00:00 2001 From: Gab Date: Thu, 26 Mar 2026 15:14:37 +1100 Subject: [PATCH] fix: script --- packages/tfcode/script/publish-tfcode.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/tfcode/script/publish-tfcode.ts b/packages/tfcode/script/publish-tfcode.ts index 5b399862e..6c69054be 100644 --- a/packages/tfcode/script/publish-tfcode.ts +++ b/packages/tfcode/script/publish-tfcode.ts @@ -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 = {} @@ -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