chore: debug

This commit is contained in:
xHyroM 2022-07-28 08:44:36 +02:00
parent dbb8e61d45
commit fe160cf381
2 changed files with 4 additions and 5 deletions

View file

@ -5,6 +5,7 @@ import { addPath, info } from '@actions/core';
import getAsset from './getAsset.js';
import { join } from 'path';
import { homedir } from 'os';
import { readdirSync } from 'fs';
export default async(release: Release, token: string) => {
const asset = getAsset(release.assets);
@ -27,14 +28,12 @@ export default async(release: Release, token: string) => {
}
);
const extracted = await extractZip(zipPath, join(homedir(), '.bun', 'bin'));
console.log(extracted)
console.log(readdirSync(join(homedir(), '.bun', 'bin')));
const newCache = await cacheDir(
extracted,
'bun',
release.version
);
console.log(newCache, join(extracted, asset.name));
await saveCache([
join(extracted, asset.name)
], `bun-${process.platform}-${asset.name}-${release.version}`);