File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ await $`cd ./dist/${pkg.name} && bun publish --access public --tag ${Script.chan
4242
4343if ( ! Script . preview ) {
4444 const major = Script . version . split ( "." ) [ 0 ]
45- const majorTag = `v ${ major } `
45+ const majorTag = `latest- ${ major } `
4646 for ( const [ name ] of Object . entries ( binaries ) ) {
4747 await $ `cd dist/${ name } && npm dist-tag add ${ name } @${ Script . version } ${ majorTag } `
4848 }
Original file line number Diff line number Diff line change @@ -4,10 +4,13 @@ if (process.versions.bun !== "1.3.0") {
44 throw new Error ( "This script requires [email protected] " ) 55}
66
7- const CHANNEL = process . env [ "OPENCODE_CHANNEL" ] ?? ( await $ `git branch --show-current` . text ( ) . then ( ( x ) => x . trim ( ) ) )
7+ const CHANNEL =
8+ process . env [ "OPENCODE_CHANNEL" ] ??
9+ ( await $ `git branch --show-current` . text ( ) . then ( ( x ) => x . trim ( ) ) )
810const IS_PREVIEW = CHANNEL !== "latest"
911const VERSION = await ( async ( ) => {
10- if ( IS_PREVIEW ) return `0.0.0-${ CHANNEL } -${ new Date ( ) . toISOString ( ) . slice ( 0 , 16 ) . replace ( / [ - : T ] / g, "" ) } `
12+ if ( IS_PREVIEW )
13+ return `0.0.0-${ CHANNEL } -${ new Date ( ) . toISOString ( ) . slice ( 0 , 16 ) . replace ( / [ - : T ] / g, "" ) } `
1114 const version = await fetch ( "https://registry.npmjs.org/opencode-ai/latest" )
1215 . then ( ( res ) => {
1316 if ( ! res . ok ) throw new Error ( res . statusText )
You can’t perform that action at this time.
0 commit comments