Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 13ca963

Browse files
committed
Fix Latest.txt update when all nupkgs stable
The update script was bailing when it couldn't find a prerelease version in any of the packages. No prerelease is expected since we're building stable packages. The latest.txt won't help in the stable transition so I've just set the value to "stable" to indicate what happened.
1 parent af356a0 commit 13ca963

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

UpdatePublishedVersions.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ foreach ($package in $packages)
123123

124124
if (!$prereleaseVersion)
125125
{
126-
throw "Could not find a Prerelease version in '$newPackages'"
126+
# value here is no longer needed, use "stable" to indicate that prerelease is no longer valid and a human will have to do the update to stable.
127+
$prereleaseVersion = "stable"
127128
}
128129

129130
$versionFilePath = "$versionsRepoPath/Latest.txt"

0 commit comments

Comments
 (0)