From 8e382765014474477626b481401f142861b5470b Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 18 Nov 2023 01:30:48 -0700 Subject: [PATCH] ignore latest tag when looking for next release number --- gulp.d/tasks/release.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulp.d/tasks/release.js b/gulp.d/tasks/release.js index 5854a5e..258cedc 100644 --- a/gulp.d/tasks/release.js +++ b/gulp.d/tasks/release.js @@ -13,7 +13,7 @@ const zip = require('gulp-vinyl-zip') function getNextReleaseNumber ({ octokit, owner, repo, variant }) { const prefix = `${variant}-` - const filter = (entry) => entry.name.startsWith(prefix) + const filter = ({ name }) => name.startsWith(prefix) && !name.endsWith('-latest') return collectReleases({ octokit, owner, repo, filter }).then((releases) => { if (releases.length) { releases.sort((a, b) => -1 * a.name.localeCompare(b.name, 'en', { numeric: true }))