chore: use api.github.com

This commit is contained in:
xHyroM 2022-07-28 08:06:06 +02:00
parent 24c8fd036a
commit f391a17228
4 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@ export default async(release: Release, token: string) => {
info(`Downloading Bun from ${asset.asset.browser_download_url}.`);
const zipPath = await downloadTool(asset.asset.browser_download_url, new URL(asset.asset.browser_download_url).host === 'github.com' ? `${token}` : '');
const zipPath = await downloadTool(asset.asset.browser_download_url, new URL(asset.asset.browser_download_url).host === 'github.com' ? `token ${token}` : '');
const extracted = await extractZip(zipPath, join(homedir(), '.bun', 'bin'));
const newCache = await cacheDir(