Skip to content

Commit 8e38276

Browse files
committed
ignore latest tag when looking for next release number
1 parent c226fee commit 8e38276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulp.d/tasks/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const zip = require('gulp-vinyl-zip')
1313

1414
function getNextReleaseNumber ({ octokit, owner, repo, variant }) {
1515
const prefix = `${variant}-`
16-
const filter = (entry) => entry.name.startsWith(prefix)
16+
const filter = ({ name }) => name.startsWith(prefix) && !name.endsWith('-latest')
1717
return collectReleases({ octokit, owner, repo, filter }).then((releases) => {
1818
if (releases.length) {
1919
releases.sort((a, b) => -1 * a.name.localeCompare(b.name, 'en', { numeric: true }))

0 commit comments

Comments
 (0)