ci · argszero/opencode@c1ee6d6 · GitHub
Skip to content

Commit c1ee6d6

Browse files
thdxropencode
authored andcommitted
ci
1 parent a3fbbec commit c1ee6d6

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

packages/opencode/script/publish.ts

Lines changed: 0 additions & 4 deletions

packages/opencode/src/installation/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ export namespace Installation {
184184
return reg.endsWith("/") ? reg.slice(0, -1) : reg
185185
})
186186
const [major] = VERSION.split(".").map((x) => Number(x))
187-
const channel = CHANNEL === "latest" ? `latest-${major}` : CHANNEL
187+
// const channel = CHANNEL === "latest" ? `latest-${major}` : CHANNEL
188+
const channel = CHANNEL
188189
return fetch(`${registry}/opencode-ai/${channel}`)
189190
.then((res) => {
190191
if (!res.ok) throw new Error(res.statusText)

packages/script/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const IS_PREVIEW = CHANNEL !== "latest"
2929
const VERSION = await (async () => {
3030
if (env.OPENCODE_VERSION) return env.OPENCODE_VERSION
3131
if (IS_PREVIEW) return `0.0.0-${CHANNEL}-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}`
32-
const version = await fetch("https://registry.npmjs.org/opencode-ai/latest-1")
32+
const version = await fetch("https://registry.npmjs.org/opencode-ai/latest")
3333
.then((res) => {
3434
if (!res.ok) throw new Error(res.statusText)
3535
return res.json()

script/publish.ts

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)