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
File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed
Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ await Bun.file(`./dist/${pkg.name}/package.json`).write(
3737)
3838
3939const tags = [ Script . channel ]
40- if ( ! Script . preview ) {
41- const major = Script . version . split ( "." ) [ 0 ]
42- tags [ 0 ] = `latest-${ major } `
43- }
4440
4541const tasks = Object . entries ( binaries ) . map ( async ( [ name ] ) => {
4642 if ( process . platform !== "win32" ) {
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const IS_PREVIEW = CHANNEL !== "latest"
2929const 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 ( )
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const notes = [] as string[]
99console . log ( "=== publishing ===\n" )
1010
1111if ( ! 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 ( )
You can’t perform that action at this time.
0 commit comments