mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 12:38:24 +02:00
chore: debug
This commit is contained in:
parent
dbb8e61d45
commit
fe160cf381
2 changed files with 4 additions and 5 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue