chore: build

This commit is contained in:
xHyroM 2022-07-11 10:12:03 +02:00
parent dfd8567745
commit 8c96e64ebf

View File

@ -3,6 +3,7 @@ import { addPath, info } from '@actions/core';
import getAsset from './getAsset.js'; import getAsset from './getAsset.js';
import getHomeDir from './getHomeDir.js'; import getHomeDir from './getHomeDir.js';
import { join } from 'path'; import { join } from 'path';
import { readdirSync } from 'fs';
export default async (release) => { export default async (release) => {
const cache = find('bun', release.tag_name); const cache = find('bun', release.tag_name);
if (cache) { if (cache) {
@ -19,5 +20,6 @@ export default async (release) => {
addPath(newCache); addPath(newCache);
console.log(extracted); console.log(extracted);
const bunPath = join(getHomeDir(), ".bun", "bin"); const bunPath = join(getHomeDir(), ".bun", "bin");
console.log(readdirSync(bunPath));
addPath(bunPath); addPath(bunPath);
}; };