1
0

feat: support rc version (#72)

This commit is contained in:
Leo Kettmeir
2024-09-13 07:41:34 -07:00
committed by GitHub
parent 3a041055d2
commit f8480e68ca
6 changed files with 106 additions and 58 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ const tc = require("@actions/tool-cache");
async function install(version) {
const cachedPath = tc.find(
"deno",
version.isCanary ? `0.0.0-${version.version}` : version.version,
version.kind === "canary" ? `0.0.0-${version.version}` : version.version,
);
if (cachedPath) {
core.info(`Using cached Deno installation from ${cachedPath}.`);
@@ -20,7 +20,7 @@ async function install(version) {
}
const zip = zipName();
const url = version.isCanary
const url = version.kind === "canary"
? `https://dl.deno.land/canary/${version.version}/${zip}`
: `https://dl.deno.land/release/v${version.version}/${zip}`;