Skip to content

Commit

Permalink
Reduce frequency of version comment updates (#4244)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1642b66)
  • Loading branch information
frangio committed May 12, 2023
1 parent e0fe936 commit a43069e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release/update-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const { version } = require('../../package.json');
const [tag] = run('git', 'tag')
.split(/\r?\n/)
.filter(semver.coerce) // check version can be processed
.filter(v => semver.lt(semver.coerce(v), version)) // only consider older tags, ignore current prereleases
.filter(v => semver.satisfies(v, `< ${version}`)) // ignores prereleases unless currently a prerelease
.sort(semver.rcompare);

// Ordering tag → HEAD is important here.
Expand Down

0 comments on commit a43069e

Please sign in to comment.