mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 10:40:10 +08:00
chore: build
This commit is contained in:
parent
dfd8567745
commit
8c96e64ebf
2
dist/utils/install.js
vendored
2
dist/utils/install.js
vendored
@ -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);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user