mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
fix: check currentValue before generating newValue
This commit is contained in:
parent
f6454ba1a7
commit
bb64598d6a
1 changed files with 15 additions and 13 deletions
|
@ -32,6 +32,7 @@ export function generateUpdate(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const { currentValue } = config;
|
const { currentValue } = config;
|
||||||
|
if (currentValue) {
|
||||||
try {
|
try {
|
||||||
update.newValue = versioning.getNewValue({
|
update.newValue = versioning.getNewValue({
|
||||||
currentValue,
|
currentValue,
|
||||||
|
@ -46,6 +47,7 @@ export function generateUpdate(
|
||||||
);
|
);
|
||||||
update.newValue = currentValue;
|
update.newValue = currentValue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
update.newMajor = versioning.getMajor(newVersion);
|
update.newMajor = versioning.getMajor(newVersion);
|
||||||
update.newMinor = versioning.getMinor(newVersion);
|
update.newMinor = versioning.getMinor(newVersion);
|
||||||
// istanbul ignore if
|
// istanbul ignore if
|
||||||
|
|
Loading…
Reference in a new issue