@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaitranntt/ccs",
3
- "version": "7.74.0-dev.20",
3
+ "version": "7.74.0-dev.21",
4
4
  "description": "Claude Code Switch - Instant profile switching between Claude, GLM, Kimi, and more",
5
5
  "keywords": [
6
6
  "cli",
@@ -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" == "chore(release): ${CURRENT_VERSION} [skip ci]" ]]; then
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} [skip ci]"
106
+ git commit -m "chore(release): ${VERSION}"
105
107
  log_info "Created release commit"
106
108
 
107
109
  # Create tag