mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 12:38:24 +02:00
feat: clean version
This commit is contained in:
parent
705032ffe3
commit
ad6ee5950c
4 changed files with 14 additions and 18 deletions
|
@ -6,7 +6,8 @@ import getHomeDir from './getHomeDir.js';
|
|||
import { join } from 'path';
|
||||
|
||||
export default async(release: Release) => {
|
||||
const cache = find('bun', release.tag_name);
|
||||
const cache = find('bun', release.version);
|
||||
console.log(cache);
|
||||
if (cache) {
|
||||
info(`Using cached Bun installation from ${cache}.`);
|
||||
addPath(cache);
|
||||
|
@ -23,7 +24,7 @@ export default async(release: Release) => {
|
|||
const newCache = await cacheDir(
|
||||
extracted,
|
||||
'bun',
|
||||
release.tag_name
|
||||
release.version
|
||||
);
|
||||
|
||||
info(`Cached Bun to ${newCache}.`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue