How do you get the latest version number for a nuget package from the GitHub REST API?
I need this as part of my build script so I don't need to keep manually increment the version in my build file (PowerShell).
curl -H "Accept: application/vnd.github.v3+json" -u myusername:<mykey> https://api.github.com/orgs/<mycompany>/packages/nuget/<mypackagename>
I can't see the actual latest version number of the package in the response. I was expecting to see a JSON property with something like latest_version: 1.0.24
I can see that there is version_count: 24
but that doesn't help me build the full SEMVER version of 1.2.28 etc.