Pre-release version as patch version

This commit is contained in:
aboyko
2023-02-01 19:32:05 -05:00
parent 9a8ab05804
commit 5270b9ca34

View File

@@ -26,6 +26,9 @@ if [ "$dist_type" = release ]; then
echo -e "\n\n*Version: ${base_version}-RELEASE*" >> README.md
else
if [ "$dist_type" = pre ]; then
# for pre-release build, work the timestamp into package.json patch version (
qualified_version = `echo $base_version | sed "s/\([0-9]\{1,\}.[0-9]\{1,\}.\)[0-9]\{1,\}/\1$timestamp/"`
npm version ${qualified_version}
echo -e "\n\n*Version: ${base_version}-PRE-RELEASE*" >> README.md
else
# for snapshot build, work the timestamp into package.json version qualifier