WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c1ee6d6

Browse files
thdxropencode
authored andcommitted
ci
1 parent a3fbbec commit c1ee6d6

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

packages/opencode/script/publish.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
3737
)
3838

3939
const tags = [Script.channel]
40-
if (!Script.preview) {
41-
const major = Script.version.split(".")[0]
42-
tags[0] = `latest-${major}`
43-
}
4440

4541
const tasks = Object.entries(binaries).map(async ([name]) => {
4642
if (process.platform !== "win32") {

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
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const notes = [] as string[]
99
console.log("=== publishing ===\n")
1010

1111
if (!Script.preview) {
12-
const previous = await fetch("https://registry.npmjs.org/opencode-ai/latest-1")
12+
const previous = await fetch("https://registry.npmjs.org/opencode-ai/latest")
1313
.then((res) => {
1414
if (!res.ok) throw new Error(res.statusText)
1515
return res.json()

0 commit comments

Comments
 (0)