2 Commits

Author SHA1 Message Date
Leo Kettmeir
1c4873e05d 2.0.1 (#86) 2024-10-09 02:01:02 -07:00
Leo Kettmeir
4b0db74aa8 fix: update README and tests (#85) 2024-10-09 09:54:03 +01:00
4 changed files with 5 additions and 44 deletions

View File

@@ -1,21 +0,0 @@
{
"problemMatcher": [
{
"owner": "deno-lint",
"pattern": [
{
"regexp": "^(?:\\x1B\\[[0-9;]*[a-zA-Z])*(warning|warn|error)(?:\\[(\\S*)\\])?(?:\\x1B\\[[0-9;]*[a-zA-Z])*: (.*?)(?:\\x1B\\[[0-9;]*[a-zA-Z])*$",
"severity": 1,
"code": 2,
"message": 3
},
{
"regexp": "^(?:\\s*)(?:\\x1B\\[[0-9;]*[a-zA-Z])*-->(?:\\x1B\\[[0-9;]*[a-zA-Z])* (?:\\x1B\\[[0-9;]*[a-zA-Z])*(\\S+?)(?:\\x1B\\[[0-9;]*[a-zA-Z])*:(\\d+):(\\d+)(?:\\x1B\\[[0-9;]*[a-zA-Z])*$",
"file": 1,
"line": 2,
"column": 3
}
]
}
]
}

View File

@@ -1,6 +1,5 @@
import process from "node:process";
import core from "@actions/core";
import path from "node:path";
import {
getDenoVersionFromFile,
parseVersionRange,
@@ -39,12 +38,6 @@ async function main() {
await install(version);
core.info(
`::add-matcher::${
path.join(import.meta.dirname ?? ".", "deno-problem-matchers.json")
}`,
);
core.setOutput("deno-version", version.version);
core.setOutput("release-channel", version.kind);

View File

@@ -1,7 +1,7 @@
{
"name": "setup-deno",
"description": "Set up Deno easily in GitHub Actions",
"version": "2.0.2",
"description": "Set up Deno easially in GitHub Actions",
"version": "2.0.1",
"author": "Deno Land Inc",
"license": "MIT",
"type": "module",

View File

@@ -20,20 +20,9 @@ export async function install(version) {
}
const zip = zipName();
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;
}
const url = version.kind === "canary"
? `https://dl.deno.land/canary/${version.version}/${zip}`
: `https://dl.deno.land/release/v${version.version}/${zip}`;
core.info(`Downloading Deno from ${url}.`);