mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2026-04-26 08:04:23 +00:00
Fix logic for ignoring tag version matching
This commit is contained in:
parent
9475102a4a
commit
fccf69567f
3 changed files with 5 additions and 5 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
|
@ -1248,8 +1248,8 @@ async function run() {
|
|||
|
||||
if (currentTag) {
|
||||
let tagVersion = parseVersion(currentTag);
|
||||
if (tagVersion[0] !== major &&
|
||||
tagVersion[1] !== minor &&
|
||||
if (tagVersion[0] !== major ||
|
||||
tagVersion[1] !== minor ||
|
||||
tagVersion[2] !== patch) {
|
||||
[major, minor, patch] = tagVersion;
|
||||
increment = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue