diff --git a/generateNotes.js b/generateNotes.js index f890ba1..51b35b2 100644 --- a/generateNotes.js +++ b/generateNotes.js @@ -2,7 +2,10 @@ const changelog = require('conventional-changelog') const parseUrl = require('github-url-from-git') const execSync = require('child_process').execSync; -const lastTag = () => execSync('git describe --tags --match "v[0-9]*" --abbrev=0 origin/master', { encoding: 'utf8' }).trim(); +const lastTag = () => execSync( + 'git describe --tags --match "v[0-9]*" --exclude="*dev*" --abbrev=0 origin/master', + { encoding: 'utf8' } +).trim(); module.exports = function (pluginConfig, {pkg}, cb) { const repository = pkg.repository ? parseUrl(pkg.repository.url) : null