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

Fixes validation script #203

Merged
merged 2 commits into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/ValidateProjectVersionUpdated.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ Catch {
Write-Host "No package exists. You will probably be publishing $packageName for the first time."
Exit # exit gracefully
}

Write-Host $_
Exit 1
}

$currentPublishedVersion = [System.Management.Automation.SemanticVersion]$nugetIndex.items[0].upper
$currentPublishedVersion = $nugetIndex.items | Select-Object -ExpandProperty upper | ForEach-Object { [System.Management.Automation.SemanticVersion]$_ } | sort-object | Select-Object -Last 1

# Validate that the version number has been updated.
if ($currentProjectVersion -le $currentPublishedVersion) {
Expand Down
Loading