refactor: use versions.js from deno.com instead of github (#45)
This commit is contained in:
parent
d114c5eb74
commit
b41525049b
|
@ -13,7 +13,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
deno:
|
deno:
|
||||||
[1.x, "1.8.2", canary, ~1.7, e7b7129b7a92b7500ded88f8f5baa25a7f59e56e]
|
[1.x, "1.33.1", canary, ~1.32, b31cf9fde6ad5398c20370c136695db77df6beeb]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
|
@ -60,9 +60,7 @@ async function resolveVersion({ range, isCanary }) {
|
||||||
return { version: range, isCanary: true };
|
return { version: range, isCanary: true };
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = await fetch(
|
const res = await fetch("https://deno.com/versions.json");
|
||||||
"https://raw.githubusercontent.com/denoland/dotland/main/versions.json",
|
|
||||||
);
|
|
||||||
if (res.status !== 200) {
|
if (res.status !== 200) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"Failed to fetch stable version info from raw.githubusercontent.com. Please try again later.",
|
"Failed to fetch stable version info from raw.githubusercontent.com. Please try again later.",
|
||||||
|
|
Loading…
Reference in New Issue