Fix "full tag" match pattern

This commit is contained in:
Paul Hatcherian 2021-02-25 08:51:40 -05:00
parent d061f3fb0e
commit ed818a75eb
3 changed files with 17 additions and 2 deletions

2
dist/index.js vendored
View file

@ -1139,7 +1139,7 @@ async function run() {
branch = (await cmd('git', 'rev-parse', 'HEAD')).trim();
}
const versionPattern = shortTags ? '*[0-9.]' : '[0-9]+\\.[0-9]+\\.[0-9]+'
const versionPattern = shortTags ? '*[0-9.]' : '*[0-9].*[0-9].*[0-9]'
const releasePattern = namespace === '' ? `${tagPrefix}${versionPattern}` : `${tagPrefix}${versionPattern}-${namespace}`;
let major = 0, minor = 0, patch = 0, increment = 0;
let changed = true;