chore: remove debugging, build
This commit is contained in:
@@ -5,17 +5,13 @@ import { addPath, info } from '@actions/core';
|
||||
import getAsset from './getAsset.js';
|
||||
import getHomeDir from './getHomeDir.js';
|
||||
import { join } from 'path';
|
||||
import { readdirSync } from 'fs';
|
||||
|
||||
export default async(release: Release) => {
|
||||
const asset = getAsset(release.assets);
|
||||
const path = join(getHomeDir(), '.bun', 'bin', asset.name);
|
||||
console.log(path);
|
||||
const cache = find('bun', release.version) || await restoreCache([path], `bun-${process.platform}-${asset.name}-${release.version}`);
|
||||
if (cache) {
|
||||
info(`Using cached Bun installation from ${cache}.`);
|
||||
console.log(path);
|
||||
console.log(readdirSync(path));
|
||||
addPath(path);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user