mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2026-04-20 13:29:55 +00:00
Fix for pre-release tags on current commit
This commit is contained in:
parent
346a6f2b12
commit
8b3b8f89c6
5 changed files with 137 additions and 3 deletions
1
dist/index.js
vendored
1
dist/index.js
vendored
|
|
@ -746,6 +746,7 @@ class DefaultLastReleaseResolver {
|
|||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const releasePattern = tagFormatter.GetPattern();
|
||||
let currentTag = (yield (0, CommandRunner_1.cmd)(`git tag --points-at ${current} ${releasePattern}`)).trim();
|
||||
currentTag = tagFormatter.IsValid(currentTag) ? currentTag : '';
|
||||
const [currentMajor, currentMinor, currentPatch] = !!currentTag ? tagFormatter.Parse(currentTag) : [null, null, null];
|
||||
let tag = '';
|
||||
try {
|
||||
|
|
|
|||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue