mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-11 19:06:43 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1c4873e05d | ||
|
|
4b0db74aa8 |
@@ -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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
7
main.mjs
7
main.mjs
@@ -1,6 +1,5 @@
|
|||||||
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,
|
||||||
@@ -39,12 +38,6 @@ 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 easily in GitHub Actions",
|
"description": "Set up Deno easially in GitHub Actions",
|
||||||
"version": "2.0.2",
|
"version": "2.0.1",
|
||||||
"author": "Deno Land Inc",
|
"author": "Deno Land Inc",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -20,20 +20,9 @@ export async function install(version) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const zip = zipName();
|
const zip = zipName();
|
||||||
let url;
|
const url = version.kind === "canary"
|
||||||
|
? `https://dl.deno.land/canary/${version.version}/${zip}`
|
||||||
switch (version.kind) {
|
: `https://dl.deno.land/release/v${version.version}/${zip}`;
|
||||||
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