diff --git a/utils/fetchReleases.tsx b/utils/fetchReleases.tsx index e816d1b..e6b9d42 100644 --- a/utils/fetchReleases.tsx +++ b/utils/fetchReleases.tsx @@ -12,6 +12,11 @@ async function fetchFilteredReleases(): Promise { let filteredReleases: FilteredRelease[] = []; for (const release of sortedReleases) { + // Ignore the release if it's a prerelease + if (release.prerelease) { + continue; + } + const [major, minor] = release.tag_name.replace('v', '').split('.').map(Number); const majorVersion = `${major}.${minor}`; @@ -20,6 +25,7 @@ async function fetchFilteredReleases(): Promise { filteredReleases.push({ version: release.tag_name, + prerelease: release.prerelease, assets: release.assets.map(asset => { const packageInfo = asset.name.includes('osdf') ? 'osdf' : diff --git a/utils/types.ts b/utils/types.ts index 960ff44..1000a5e 100644 --- a/utils/types.ts +++ b/utils/types.ts @@ -25,6 +25,7 @@ id: number; } export interface Release { +prerelease: boolean; assets: Asset[]; tag_name: string; // To determine the version of the release. name: string; @@ -33,6 +34,7 @@ name: string; export type FilteredRelease = { version: string; assets: FilteredAsset[]; +prerelease: boolean; } export type FilteredAsset = {