deploy test

This commit is contained in:
miloschwartz
2025-07-31 14:45:36 -07:00
parent 3556d40d47
commit b918f105b5
64 changed files with 3397 additions and 1943 deletions

15
lib/fetchLatestRelease.js Normal file
View File

@@ -0,0 +1,15 @@
export async function fetchLatestRelease(repo) {
try {
const response = await fetch(
`https://api.github.com/repos/${repo}/releases/latest`,
);
if (!response.ok) {
throw new Error(`Failed to fetch release info: ${response.statusText}`);
}
const data = await response.json();
const latestVersion = data.tag_name;
return latestVersion;
} catch (error) {
console.error("Error fetching latest release:", error);
}
}