From 43d1f62fb113e432ebfa7e9fb8a033ae1788e566 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Sun, 21 Jan 2024 09:25:07 +0100 Subject: [PATCH] publish_npm_package.yaml: make nightly version number monotonic Use date formatting that include 0 for single number month and day. For example: 20240121 instead of 2024121. So that the current nightly version is bigger than the ones from December 2023 --- .github/workflows/publish_npm_package.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_npm_package.yaml b/.github/workflows/publish_npm_package.yaml index 8b7036a166a..8d3a7a50830 100644 --- a/.github/workflows/publish_npm_package.yaml +++ b/.github/workflows/publish_npm_package.yaml @@ -42,7 +42,7 @@ jobs: run: | version=`npm pkg get version | jq -r` if [ "$RELEASE_INPUT" != "true" ]; then - nightly_version_suffix=`git log -1 --format=%cd --date="format:%Y%-m%-d%H"` + nightly_version_suffix=`git log -1 --format=%cd --date="format:%Y%m%d%H"` version="$version-nightly.$nightly_version_suffix" fi echo $version