refactor: use versions.js from deno.com instead of github (#45)

This commit is contained in:
Leo Kettmeir 2023-05-01 14:14:43 +02:00 committed by GitHub
parent d114c5eb74
commit b41525049b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -13,7 +13,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
deno:
[1.x, "1.8.2", canary, ~1.7, e7b7129b7a92b7500ded88f8f5baa25a7f59e56e]
[1.x, "1.33.1", canary, ~1.32, b31cf9fde6ad5398c20370c136695db77df6beeb]
steps:
- uses: actions/checkout@v3

View File

@ -60,9 +60,7 @@ async function resolveVersion({ range, isCanary }) {
return { version: range, isCanary: true };
}
const res = await fetch(
"https://raw.githubusercontent.com/denoland/dotland/main/versions.json",
);
const res = await fetch("https://deno.com/versions.json");
if (res.status !== 200) {
throw new Error(
"Failed to fetch stable version info from raw.githubusercontent.com. Please try again later.",