We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c6ecb3 commit 003ac26Copy full SHA for 003ac26
src/install.mjs
@@ -20,9 +20,20 @@ export async function install(version) {
20
}
21
22
const zip = zipName();
23
- const url = version.kind === "canary"
24
- ? `https://dl.deno.land/canary/${version.version}/${zip}`
25
- : `https://dl.deno.land/release/v${version.version}/${zip}`;
+ let url;
+
+ switch (version.kind) {
26
+ case "canary":
27
+ url = `https://dl.deno.land/canary/${version.version}/${zip}`;
28
+ break;
29
+ case "rc":
30
+ url = `https://dl.deno.land/release/v${version.version}/${zip}`;
31
32
+ case "stable":
33
+ url =
34
+ `https://github.com/denoland/deno/releases/download/v${version.version}/${zip}`;
35
36
+ }
37
38
core.info(`Downloading Deno from ${url}.`);
39
0 commit comments