chore: bump version

This commit is contained in:
xHyroM 2022-07-28 09:25:52 +02:00
parent 673843c5ea
commit 21ca0e24af
4 changed files with 3 additions and 5 deletions

View File

@ -18,7 +18,7 @@ export default async (release, token, customUrl) => {
'Authorization': new URL(asset.asset.browser_download_url).host.includes('github.com') ? `token ${token}` : '' 'Authorization': new URL(asset.asset.browser_download_url).host.includes('github.com') ? `token ${token}` : ''
}); });
let extracted; let extracted;
if (customUrl) { if (customUrl && asset.asset.browser_download_url.includes('artifacts')) {
extracted = await extractZip(zipPath, join(homedir(), 'onlyforunzip')); extracted = await extractZip(zipPath, join(homedir(), 'onlyforunzip'));
extracted = await extractZip(join(homedir(), 'onlyforunzip', asset.asset.name), join(homedir(), '.bun', 'bin')); extracted = await extractZip(join(homedir(), 'onlyforunzip', asset.asset.name), join(homedir(), '.bun', 'bin'));
} }

View File

@ -1,5 +1,5 @@
{ {
"version": "0.1.6", "version": "0.1.7",
"name": "setup-bun", "name": "setup-bun",
"main": "dist/index.js", "main": "dist/index.js",
"type": "module", "type": "module",

View File

@ -28,7 +28,7 @@ export default async(release: Release, token: string, customUrl: boolean) => {
); );
let extracted; let extracted;
if (customUrl) { if (customUrl && asset.asset.browser_download_url.includes('artifacts')) {
extracted = await extractZip(zipPath, join(homedir(), 'onlyforunzip')); extracted = await extractZip(zipPath, join(homedir(), 'onlyforunzip'));
extracted = await extractZip(join(homedir(), 'onlyforunzip', asset.asset.name), join(homedir(), '.bun', 'bin')); extracted = await extractZip(join(homedir(), 'onlyforunzip', asset.asset.name), join(homedir(), '.bun', 'bin'));
} else extracted = await extractZip(zipPath, join(homedir(), '.bun', 'bin')); } else extracted = await extractZip(zipPath, join(homedir(), '.bun', 'bin'));

View File

@ -1,2 +0,0 @@
GET https://api.github.com/repos/oven-sh/bun/releases/latest
Authorization: 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