File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed
Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2828 GITHUB_TOKEN : ${{ secrets.GORELEASER_TOKEN }}
2929 npm :
3030 runs-on : ubuntu-latest
31+ needs : goreleaser
3132 steps :
3233 - uses : actions/checkout@v4
3334 with :
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ mkdir -p "$TARGET_DIR"
1414
1515cp " ${SOURCE_DIR} /constants.js" " ${TARGET_DIR} /"
1616cp " ${SOURCE_DIR} /installer.js" " ${TARGET_DIR} /"
17+ cp " ${SOURCE_DIR} /lib.js" " ${TARGET_DIR} /"
1718cp " ${SOURCE_DIR} /runner.js" " ${TARGET_DIR} /"
1819cp " ${SOURCE_DIR} /package.json" " ${TARGET_DIR} /"
1920cp " ${SOURCE_DIR} /README.md" " ${TARGET_DIR} /"
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ export async function installBinaries() {
1212 if ( ! ARCH ) throw UNSUPPORTED_ARCH ;
1313
1414 const destination = BIN_DIR ;
15- const release = await getRelease ( `v${ VERSION } ` ) ;
15+ const release = await getRelease ( `v${ VERSION } ` ) . catch ( err => {
16+ throw new Error ( `Unable to find release v${ VERSION } ` ) ;
17+ } ) ;
1618 const assetPrefix = `${ BIN_NAME } _${ PLATFORM } _${ ARCH } `
1719 const asset = release . assets . find ( ( a ) => a . name . startsWith ( assetPrefix ) ) ;
1820 if ( ! asset ) throw new Error ( `Cannot find an asset for ${ PLATFORM } - ${ ARCH } (${ assetPrefix } )` ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ async function run() {
1212 await installBinaries ( )
1313 }
1414
15+ const [ , , ...args ] = process . argv
16+
1517 let result = spawnSync ( binfile , args , {
1618 cwd : process . cwd ( ) ,
1719 stdio : "inherit" ,
You can’t perform that action at this time.
0 commit comments