Skip to content

Commit

Permalink
ignore latest tag when looking for next release number
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Nov 18, 2023
1 parent c226fee commit 8e38276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulp.d/tasks/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }))
Expand Down

0 comments on commit 8e38276

Please sign in to comment.