Invalid order of NuGet dev releases #3955
Labels
bug
Something isn't working
ci & cd
Related to CI & CD on Azure Pipelines & GitHub Actions
good first issue
Good for newcomers
hacktoberfest
Newcomer-welcoming issues for Hacktoberfest
packaging
Releated to NuGet/npm packages and other formats of distributions
Background
When I looked at Libplanet's NuGet dev releases, they were not well ordered by release date.
It is because the version suffix is generated without zerofill. (
20240901
with zerofill,202491
without zerofill)Work items
To resolve this issue, you can amend
scripts/determine-versions.js
file. You can see the logic to determine a version suffix at the below lines:libplanet/scripts/determine-version.js
Lines 120 to 126 in f6cd63d
You should update the part to declare
ts
variable.You can test the script easily by running the
node scripts/determine-version.js
command.If you amended well, it expects to generate
VersionSuffix: dev.20240910010203+xxxxxxx
for the date (year: 2024, month: 9, day: 10, hour: 1, minutes: 2, seconds: 3)The text was updated successfully, but these errors were encountered: