Skip to content

Commit

Permalink
refactor: use versions.js from deno.com instead of github (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats authored May 1, 2023
1 parent d114c5e commit b415250
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit b415250

Please sign in to comment.