Get only LTS Node versions from node-versions manifest file (#53)

* Get only LTS Node versions from manifest

* Minor fix
miketimofeev-patch-1
Vladimir Safonkin 3 years ago committed by GitHub
parent e6dbb79745
commit 31f01aedc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,8 +8,10 @@ function Search-ToolsVersionsNotOnImage {
$stableReleases = (Invoke-RestMethod $ReleasesUrl) | Where-Object stable -eq $true
$stableReleaseVersions = $stableReleases | ForEach-Object {
if ($ToolName -eq "Node") {
$_.$FilterParameter.split(".")[0] + ".0"
if ($ToolName -eq "Node") {
if ($_.lts) {
$_.$FilterParameter.split(".")[0] + ".0"
}
} else {
$_.$FilterParameter.split(".")[0,1] -join"."
}

Loading…
Cancel
Save