Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from microsoft/validateSemver2versions
Browse files Browse the repository at this point in the history
Validate SemVer 2 versions on release
  • Loading branch information
andrueastman authored Apr 1, 2022
2 parents 378894e + bb2aaa1 commit 01e303b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ValidateProjectVersionUpdated.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ $currentProjectVersion = [System.Management.Automation.SemanticVersion]"$version

# API is case-sensitive
$packageName = $packageName.ToLower()
$url = "https://api.nuget.org/v3/registration3/$packageName/index.json"
$url = "https://api.nuget.org/v3/registration5-gz-semver2/$packageName/index.json"

# Call the NuGet API for the package and get the current published version.
Try {
Expand All @@ -66,4 +66,4 @@ if ($currentProjectVersion -le $currentPublishedVersion) {
}
else {
Write-Host "Validated that the version has been updated from $currentPublishedVersion to $currentProjectVersion" -ForegroundColor Green
}
}

0 comments on commit 01e303b

Please sign in to comment.