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

10
main.js
View File

@@ -35,16 +35,14 @@ async function main() {
exit("Could not resolve a version for the given range.");
}
core.info(
`Going to install ${
version.isCanary ? "canary" : "stable"
} version ${version.version}.`,
);
core.info(`Going to install ${version.kind} version ${version.version}.`);
await install(version);
core.setOutput("deno-version", version.version);
core.setOutput("is-canary", version.isCanary);
// TODO(@crowlKats): remove in 2.0
core.setOutput("is-canary", version.kind === "canary");
core.setOutput("release-channel", version.kind);
core.info("Installation complete.");
} catch (err) {