mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 02:30:26 +08:00
chore: bump version
This commit is contained in:
parent
673843c5ea
commit
21ca0e24af
2
dist/utils/install.js
vendored
2
dist/utils/install.js
vendored
@ -18,7 +18,7 @@ export default async (release, token, customUrl) => {
|
||||
'Authorization': new URL(asset.asset.browser_download_url).host.includes('github.com') ? `token ${token}` : ''
|
||||
});
|
||||
let extracted;
|
||||
if (customUrl) {
|
||||
if (customUrl && asset.asset.browser_download_url.includes('artifacts')) {
|
||||
extracted = await extractZip(zipPath, join(homedir(), 'onlyforunzip'));
|
||||
extracted = await extractZip(join(homedir(), 'onlyforunzip', asset.asset.name), join(homedir(), '.bun', 'bin'));
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "0.1.6",
|
||||
"version": "0.1.7",
|
||||
"name": "setup-bun",
|
||||
"main": "dist/index.js",
|
||||
"type": "module",
|
||||
|
@ -28,7 +28,7 @@ export default async(release: Release, token: string, customUrl: boolean) => {
|
||||
);
|
||||
|
||||
let extracted;
|
||||
if (customUrl) {
|
||||
if (customUrl && asset.asset.browser_download_url.includes('artifacts')) {
|
||||
extracted = await extractZip(zipPath, join(homedir(), 'onlyforunzip'));
|
||||
extracted = await extractZip(join(homedir(), 'onlyforunzip', asset.asset.name), join(homedir(), '.bun', 'bin'));
|
||||
} else extracted = await extractZip(zipPath, join(homedir(), '.bun', 'bin'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user