mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-10 18:36:42 +00:00
Compare commits
2 Commits
bac1f7276c
...
v1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11b63cf76c | ||
|
|
553a648212 |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "setup-deno",
|
||||
"description": "Set up Deno easially in GitHub Actions",
|
||||
"version": "1.5.1",
|
||||
"version": "1.5.2",
|
||||
"author": "Deno Land Inc",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
||||
@@ -20,9 +20,20 @@ export async function install(version) {
|
||||
}
|
||||
|
||||
const zip = zipName();
|
||||
const url = version.kind === "canary"
|
||||
? `https://dl.deno.land/canary/${version.version}/${zip}`
|
||||
: `https://dl.deno.land/release/v${version.version}/${zip}`;
|
||||
let url;
|
||||
|
||||
switch (version.kind) {
|
||||
case "canary":
|
||||
url = `https://dl.deno.land/canary/${version.version}/${zip}`;
|
||||
break;
|
||||
case "rc":
|
||||
url = `https://dl.deno.land/release/v${version.version}/${zip}`;
|
||||
break;
|
||||
case "stable":
|
||||
url =
|
||||
`https://github.com/denoland/deno/releases/download/v${version.version}/${zip}`;
|
||||
break;
|
||||
}
|
||||
|
||||
core.info(`Downloading Deno from ${url}.`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user