@kaitranntt/ccs 7.74.0-dev.20 → 7.74.0-dev.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/dev-release.sh +4 -2
package/package.json
CHANGED
package/scripts/dev-release.sh
CHANGED
|
@@ -42,12 +42,14 @@ STABLE=${STABLE_TAG#v}
|
|
|
42
42
|
CURRENT_VERSION=$(jq -r '.version' package.json)
|
|
43
43
|
HEAD_SUBJECT=$(git log -1 --pretty=%s 2>/dev/null || echo "")
|
|
44
44
|
DEV_VERSION_REGEX="^${STABLE//./\\.}-dev\\.[0-9]+$"
|
|
45
|
+
CURRENT_RELEASE_SUBJECT="chore(release): ${CURRENT_VERSION}"
|
|
46
|
+
LEGACY_CURRENT_RELEASE_SUBJECT="${CURRENT_RELEASE_SUBJECT} [skip ci]"
|
|
45
47
|
PREVIOUS_DEV_TAG=""
|
|
46
48
|
RECOVERY_MODE=false
|
|
47
49
|
|
|
48
50
|
log_info "Current stable version: ${STABLE}"
|
|
49
51
|
|
|
50
|
-
if [[ "$CURRENT_VERSION" =~ $DEV_VERSION_REGEX ]] && [[ "$HEAD_SUBJECT" == "
|
|
52
|
+
if [[ "$CURRENT_VERSION" =~ $DEV_VERSION_REGEX ]] && { [[ "$HEAD_SUBJECT" == "$CURRENT_RELEASE_SUBJECT" ]] || [[ "$HEAD_SUBJECT" == "$LEGACY_CURRENT_RELEASE_SUBJECT" ]]; }; then
|
|
51
53
|
VERSION="$CURRENT_VERSION"
|
|
52
54
|
CURRENT_TAG="v${VERSION}"
|
|
53
55
|
PREVIOUS_DEV_TAG=$(git tag -l "v${STABLE}-dev.*" --sort=-v:refname | grep -vx "$CURRENT_TAG" | head -1 || echo "")
|
|
@@ -101,7 +103,7 @@ else
|
|
|
101
103
|
|
|
102
104
|
# Commit version change
|
|
103
105
|
git add package.json
|
|
104
|
-
git commit -m "chore(release): ${VERSION}
|
|
106
|
+
git commit -m "chore(release): ${VERSION}"
|
|
105
107
|
log_info "Created release commit"
|
|
106
108
|
|
|
107
109
|
# Create tag
|