Skip to content

Commit

Permalink
fix deploy script
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Oct 4, 2024
1 parent 0e999eb commit c34e885
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ async function getLocalReleases () {
return JSON.parse(await readFile(resolve(import.meta.dirname, '..', 'versions.json'), 'utf-8'))
}

const releasesToSkip = ['v2.3.1', 'v2.3.0']

// See: https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api?apiVersion=2022-11-28
function parseLinks (header) {
if (!header) {
Expand Down Expand Up @@ -66,6 +68,7 @@ async function getRemoteReleases (toKeep = 5) {
const allRelease = await listAllReleases()
const validReleases = allRelease
.filter((r) => !r.draft && !r.prerelease)
.filter((r) => !releasesToSkip.includes(r.tag_name))
.map((r) => parse(r.tag_name.replace(/^v/, '')))

// Keep one version per major, excluding v0.x
Expand Down

0 comments on commit c34e885

Please sign in to comment.