Compare commits

...
Author SHA1 Message Date
Leo KettmeirandGitHub 22d081ff2d 2.0.5 (#131) 2026-07-03 11:27:31 +02:00
Leo KettmeirandGitHub 28c677f5df chore: use versions.json from dl.deno.land (#130) 2026-07-03 01:49:05 +02:00
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
- "1.33.1"
- "canary"
- "~1.32"
- "b290fd01f3f5d32f9d010fc719ced0240759c049"
- "4e8b2f46ab638ae6fa20cf53a9a4cd3b5f4550bf"
- "rc"
- "lts"
+2 -2
View File
@@ -19385,8 +19385,8 @@ async function resolveRelease(range) {
kind: "stable"
};
} else {
const res = await fetchWithRetries("https://deno.com/versions.json");
if (res.status !== 200) throw new Error("Failed to fetch stable version info from deno.com/versions.json. Please try again later.");
const res = await fetchWithRetries("https://dl.deno.land/versions.json");
if (res.status !== 200) throw new Error("Failed to fetch stable version info from dl.deno.land/versions.json. Please try again later.");
const versionJson = await res.json();
if (typeof versionJson !== "object" || versionJson === null) throw new Error("Fetched stable version info is invalid.");
if (!("cli" in versionJson)) throw new Error("Fetched stable version info is invalid.");
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "setup-deno",
"description": "Set up Deno easily in GitHub Actions",
"version": "2.0.4",
"version": "2.0.5",
"author": "Deno Land Inc",
"license": "MIT",
"type": "module",
+2 -2
View File
@@ -159,10 +159,10 @@ async function resolveRelease(range: string): Promise<Version | null> {
}
return { version, kind: "stable" };
} else {
const res = await fetchWithRetries("https://deno.com/versions.json");
const res = await fetchWithRetries("https://dl.deno.land/versions.json");
if (res.status !== 200) {
throw new Error(
"Failed to fetch stable version info from deno.com/versions.json. Please try again later.",
"Failed to fetch stable version info from dl.deno.land/versions.json. Please try again later.",
);
}
const versionJson = await res.json();