mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 10:23:32 +00:00
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
This commit is contained in:
parent
168654fa29
commit
43d1f62fb1
1 changed files with 1 additions and 1 deletions
2
.github/workflows/publish_npm_package.yaml
vendored
2
.github/workflows/publish_npm_package.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue