fix: dont fail
This commit is contained in:
@@ -24,7 +24,7 @@ const main = async() => {
|
||||
|
||||
info(`Going to install release ${release.version}`);
|
||||
|
||||
await install(release, miscTestBuilds);
|
||||
await install(release);
|
||||
|
||||
setOutput('bun-version', release.tag_name);
|
||||
} catch(e) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { exit } from '../index.js';
|
||||
import { Asset } from './getGithubRelease.js';
|
||||
|
||||
export default (assets: Asset[], miscTestBuilds: boolean) => {
|
||||
export default (assets: Asset[]) => {
|
||||
let arch;
|
||||
switch (process.arch) {
|
||||
case 'arm64':
|
||||
@@ -20,10 +20,7 @@ export default (assets: Asset[], miscTestBuilds: boolean) => {
|
||||
const assetName = `bun-${process.platform}-${arch}.zip`;
|
||||
const asset = assets.find(asset => asset.name === assetName);
|
||||
|
||||
if (!asset) {
|
||||
exit(`Invalid asset ${assetName}`, miscTestBuilds);
|
||||
process.exit();
|
||||
}
|
||||
if (!asset) exit(`Invalid asset ${assetName}`);
|
||||
|
||||
return {
|
||||
name: `bun-${process.platform}-${arch}`,
|
||||
|
||||
@@ -6,8 +6,8 @@ import getAsset from './getAsset.js';
|
||||
import { join } from 'path';
|
||||
import { homedir } from 'os';
|
||||
|
||||
export default async(release: Release, miscTestBuilds: boolean) => {
|
||||
const asset = getAsset(release.assets, miscTestBuilds);
|
||||
export default async(release: Release) => {
|
||||
const asset = getAsset(release.assets);
|
||||
const path = join(homedir(), '.bun', 'bin', asset.name);
|
||||
const cache = find('bun', release.version) || await restoreCache([path], `bun-${process.platform}-${asset.name}-${release.version}`);
|
||||
if (cache) {
|
||||
|
||||
Reference in New Issue
Block a user