mirror of
https://github.com/oven-sh/setup-bun.git
synced 2026-05-19 23:00:14 +02:00
feat: canary support
This commit is contained in:
Vendored
+1
-1
@@ -5,7 +5,7 @@ export default async (version, token, miscTestBuilds) => {
|
||||
if (version === 'latest' || miscTestBuilds)
|
||||
url = `https://api.github.com/repos/${repository}/releases/latest`;
|
||||
else
|
||||
url = `https://api.github.com/repos/${repository}/releases/tags/bun-v${version}`;
|
||||
url = `https://api.github.com/repos/${repository}/releases/tags/${version.includes('canary') ? version : `bun-v${version}`}`;
|
||||
const release = await (await fetch(url, {
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user