fix(cli): always use github releases for version lookup when GH_REPO is set

This commit is contained in:
Catriel Müller
2026-04-10 16:07:57 -03:00
parent 9e469120b4
commit 049860519d
+1 -1
View File
@@ -66,7 +66,7 @@ async function fetchLatest() {
}
async function fetchHighest() {
if (!env.KILO_RELEASE || !process.env.GH_REPO) return fetchLatest()
if (!process.env.GH_REPO) return fetchLatest()
const data: { tagName: string }[] = await $`gh release list --json tagName --limit 100 --repo ${process.env.GH_REPO}`
.json()
.catch(() => [])