mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-12 11:27:10 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
909cc5acb0 | ||
|
|
003ac26627 | ||
|
|
7c6ecb3883 | ||
|
|
01524fade7 | ||
|
|
b571f8c14c |
21
deno-problem-matchers.json
Normal file
21
deno-problem-matchers.json
Normal 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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
7
main.mjs
7
main.mjs
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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}.`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user