mirror of
https://github.com/oven-sh/setup-bun.git
synced 2026-05-22 22:20:47 +00:00
fix: path
This commit is contained in:
Vendored
+2
-2
@@ -1,7 +1,6 @@
|
|||||||
import { cacheDir, downloadTool, extractZip, find } from '@actions/tool-cache';
|
import { cacheDir, downloadTool, extractZip, find } from '@actions/tool-cache';
|
||||||
import { addPath, info } from '@actions/core';
|
import { addPath, info } from '@actions/core';
|
||||||
import getAsset from './getAsset.js';
|
import getAsset from './getAsset.js';
|
||||||
import getHomeDir from './getHomeDir.js';
|
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
export default async (release) => {
|
export default async (release) => {
|
||||||
const cache = find('bun', release.tag_name);
|
const cache = find('bun', release.tag_name);
|
||||||
@@ -17,6 +16,7 @@ export default async (release) => {
|
|||||||
const newCache = await cacheDir(extracted, 'bun', release.tag_name);
|
const newCache = await cacheDir(extracted, 'bun', release.tag_name);
|
||||||
info(`Cached Bun to ${newCache}.`);
|
info(`Cached Bun to ${newCache}.`);
|
||||||
addPath(newCache);
|
addPath(newCache);
|
||||||
const bunPath = join(getHomeDir(), ".bun", "bin");
|
info(extracted);
|
||||||
|
const bunPath = join(extracted);
|
||||||
addPath(bunPath);
|
addPath(bunPath);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ export default async(release: Release) => {
|
|||||||
info(`Cached Bun to ${newCache}.`);
|
info(`Cached Bun to ${newCache}.`);
|
||||||
addPath(newCache);
|
addPath(newCache);
|
||||||
|
|
||||||
const bunPath = join(getHomeDir(), ".bun", "bin");
|
info(extracted);
|
||||||
|
const bunPath = join(extracted);
|
||||||
addPath(bunPath);
|
addPath(bunPath);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user