The latest release, or undefined if it couldn't be retrieved.
const release = await getLatestRelease();
release?.tag_name; // "v1.3.0"
export async function getLatestRelease(): Promise<GithubRelease | undefined> {
return fetchRelease('releases/latest');
}
Fetches the latest published release from the project's GitHub repository. Never throws — network failures, non-2xx responses (notably the 403 returned once the 60 req/hr unauthenticated rate limit is hit), and unrecognized bodies all resolve to
undefined.