mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-04-02 01:30:17 +08:00
chore: debug
This commit is contained in:
parent
5ae94929ee
commit
e24995197a
2
dist/utils/install.js
vendored
2
dist/utils/install.js
vendored
@ -4,6 +4,7 @@ import { addPath, info } from '@actions/core';
|
||||
import getAsset from './getAsset.js';
|
||||
import getHomeDir from './getHomeDir.js';
|
||||
import { join } from 'path';
|
||||
import { homedir } from 'os';
|
||||
export default async (release) => {
|
||||
const asset = getAsset(release.assets);
|
||||
const path = join(getHomeDir(), '.bun', 'bin', asset.name);
|
||||
@ -13,6 +14,7 @@ export default async (release) => {
|
||||
addPath(path);
|
||||
return;
|
||||
}
|
||||
console.log(getHomeDir(), homedir());
|
||||
info(`Downloading Bun from ${asset.asset.browser_download_url}.`);
|
||||
const zipPath = await downloadTool(asset.asset.browser_download_url);
|
||||
const extracted = await extractZip(zipPath, join(getHomeDir(), '.bun', 'bin'));
|
||||
|
@ -5,6 +5,7 @@ import { addPath, info } from '@actions/core';
|
||||
import getAsset from './getAsset.js';
|
||||
import getHomeDir from './getHomeDir.js';
|
||||
import { join } from 'path';
|
||||
import { homedir } from 'os';
|
||||
|
||||
export default async(release: Release) => {
|
||||
const asset = getAsset(release.assets);
|
||||
@ -15,6 +16,7 @@ export default async(release: Release) => {
|
||||
addPath(path);
|
||||
return;
|
||||
}
|
||||
console.log(getHomeDir(), homedir());
|
||||
|
||||
info(`Downloading Bun from ${asset.asset.browser_download_url}.`);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user