diff --git a/YNAB.SDK/YNAB.SDK.csproj b/YNAB.SDK/YNAB.SDK.csproj
index 0adbb99..b7e4ea8 100644
--- a/YNAB.SDK/YNAB.SDK.csproj
+++ b/YNAB.SDK/YNAB.SDK.csproj
@@ -5,7 +5,7 @@
A YNAB client that allows you to interact with the YNAB Rest API easily within a .NET Core application
YNAB.SDK
ynab;api;client;dotnetcore;sdk
- 1.0.3
+ 1.0.4
Jake Moening
https://github.com/jaboc83/ynab-sdk-dotnetcore
netcoreapp2.2
diff --git a/scripts/Publish-NugetPackage.ps1 b/scripts/Publish-NugetPackage.ps1
index d22697d..f7bd383 100644
--- a/scripts/Publish-NugetPackage.ps1
+++ b/scripts/Publish-NugetPackage.ps1
@@ -58,7 +58,7 @@ Process
if(!$?) { throw "FAILED TO PACK" }
if ($NuspecFile -eq "")
{
- $NuspecFile = (Get-ChildItem ../YNAB.SDK/bin/Release/*.nupkg)[0].FullName
+ $NuspecFile = (Get-ChildItem ../YNAB.SDK/bin/Release/*.nupkg | Sort-Object -Descending)[0].FullName
}
"`nNUGET PUSH STARTED $(Get-Date)" | Tee-Object -FilePath $logPath -Append
dotnet nuget push $NuspecFile --api-key $NugetAPIKey --source https://api.nuget.org/v3/index.json | Tee-Object -FilePath $logPath -Append