chore: debug
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user