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 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);
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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}.`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user