mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
fix(nuget): use last version if no stable exists (#8327)
This commit is contained in:
parent
12cc30779a
commit
9bffbb6e62
1 changed files with 7 additions and 0 deletions
|
@ -165,6 +165,13 @@ export async function getReleases(
|
|||
return null;
|
||||
}
|
||||
|
||||
// istanbul ignore if: only happens when no stable version exists
|
||||
if (latestStable === null) {
|
||||
const last = catalogEntries.pop();
|
||||
latestStable = removeBuildMeta(last.version);
|
||||
homepage ??= last.projectUrl;
|
||||
}
|
||||
|
||||
const dep: ReleaseResult = {
|
||||
pkgName,
|
||||
releases,
|
||||
|
|
Loading…
Reference in a new issue