mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 04:28:28 +02:00
fix: check if valid semver and add bun-v
This commit is contained in:
parent
019399b06a
commit
e53a660495
1 changed files with 2 additions and 0 deletions
|
@ -183,6 +183,8 @@ async function getDownloadUrl(options: Input): Promise<string> {
|
|||
else tag = `bun-v${tags.filter((t) => satisfies(t, version)).at(-1)}`;
|
||||
}
|
||||
|
||||
if (validate(tag)) tag = `bun-v${tag}`;
|
||||
|
||||
const eversion = encodeURIComponent(tag ?? version);
|
||||
const eos = encodeURIComponent(os ?? getPlatform());
|
||||
const earch = encodeURIComponent(arch ?? getArchitecture());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue