ci: change canary release tag format

This commit is contained in:
liuyi
2025-06-24 14:38:54 +08:00
parent d2a9b048ad
commit 8f0812ae12
2 changed files with 1 additions and 6 deletions

View File

@@ -21,8 +21,7 @@ runs:
if [ "${{ github.ref_type }}" == "tag" ]; then
APP_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
else
PACKAGE_VERSION=$(node -p "require('./package.json').version")
APP_VERSION=$PACKAGE_VERSION-canary.$GIT_SHORT_HASH
APP_VERSION=$(date '+%Y.%-m.%-d-canary.%H')+build.$GIT_SHORT_HASH
fi
if [[ "$APP_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
BUILD_TYPE=stable