5 Commits

Author SHA1 Message Date
Leo Kettmeir
909cc5acb0 2.0.2 (#92)
(cherry picked from commit 27e0043eff)
2025-01-09 23:01:30 +01:00
Leo Kettmeir
003ac26627 refactor: use GitHub downloads for stable version download (#91)
(cherry picked from commit 5e036d05d8)
2025-01-09 23:01:30 +01:00
Ryo Nakamura
7c6ecb3883 feat: add problem matchers for deno lint (#62)
(cherry picked from commit 56da422736)
2025-01-09 23:01:29 +01:00
Leo Kettmeir
01524fade7 2.0.1 (#86)
(cherry picked from commit 1c4873e05d)
2024-10-09 10:05:15 +01:00
Leo Kettmeir
b571f8c14c fix: update README and tests (#85)
(cherry picked from commit 4b0db74aa8)
2024-10-09 10:05:06 +01:00
4 changed files with 44 additions and 5 deletions

View File

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

View File

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

View File

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