π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π· build: update auto tag release (#12421)
Arvin Xu4d1508ee9bbd
diff --git a/.github/workflows/auto-tag-release.yml b/.github/workflows/auto-tag-release.ymlindex 913b1c2ee7d..e2e726761c0 100644--- a/.github/workflows/auto-tag-release.yml+++ b/.github/workflows/auto-tag-release.yml@@ -41,8 +41,8 @@ jobs:echo "βοΈ Not a release PR"fi- - name: Detect hotfix PR (branch first, title fallback)- id: hotfix+ - name: Detect patch PR (branch first, title fallback)+ id: patchif: steps.release.outputs.should_tag != 'true'run: |HEAD_REF="${{ github.event.pull_request.head.ref }}"@@ -50,31 +50,31 @@ jobs:echo "Head ref: $HEAD_REF"echo "PR Title: $PR_TITLE"- # Priority 1: hotfix/* branch always counts as hotfix, ignore PR title gate.- if [[ "$HEAD_REF" == hotfix/* ]]; then+ # Priority 1: hotfix/* or release/* branch always triggers, ignore PR title gate.+ if [[ "$HEAD_REF" == hotfix/* ]] || [[ "$HEAD_REF" == release/* ]]; thenecho "should_tag=true" >> $GITHUB_OUTPUT- echo "β Detected hotfix PR from hotfix/* branch (title gate bypassed)"+ echo "β Detected auto-release PR from $HEAD_REF branch (title gate bypassed)"exit 0fi# Priority 2: fallback to PR title prefix gate (legacy behavior).if echo "$PR_TITLE" | grep -qiE '^(π[[:space:]]*)?style(\(.+\))?:|^(β¨[[:space:]]*)?feat(\(.+\))?:|^(π[[:space:]]*)?fix(\(.+\))?:|^(β»οΈ[[:space:]]*)?refactor(\(.+\))?:|^((π|π©Ή)[[:space:]]*)?hotfix(\(.+\))?:|^(π·[[:space:]]*)?build(\(.+\))?:'; thenecho "should_tag=true" >> $GITHUB_OUTPUT- echo "β Detected hotfix PR from title prefix gate"+ echo "β Detected patch PR from title prefix gate"elseecho "should_tag=false" >> $GITHUB_OUTPUT- echo "βοΈ Not a hotfix PR (neither hotfix/* branch nor style/feat/fix/refactor/hotfix/build title prefix)"+ echo "βοΈ Not a patch PR (neither hotfix/release branch nor style/feat/fix/refactor/hotfix/build title prefix)"fi- name: Prepare main branch- if: steps.release.outputs.should_tag == 'true' || steps.hotfix.outputs.should_tag == 'true'+ if: steps.release.outputs.should_tag == 'true' || steps.patch.outputs.should_tag == 'true'run: |git checkout maingit pull --rebase origin main- - name: Resolve hotfix version (patch bump)- id: hotfix-version- if: steps.hotfix.outputs.should_tag == 'true'+ - name: Resolve patch version (patch bump)+ id: patch-version+ if: steps.patch.outputs.should_tag == 'true'run: |CURRENT_VERSION="$(node -p "require('./package.json').version")"echo "Current version: ${CURRENT_VERSION}"@@ -87,7 +87,7 @@ jobs:fiNEXT_VERSION="$(npx -y semver@7 -i patch "${BASE_VERSION}")"- echo "π¦ Hotfix version: ${NEXT_VERSION}"+ echo "π¦ Patch version: ${NEXT_VERSION}"echo "version=${NEXT_VERSION}" >> "$GITHUB_OUTPUT"- name: Set context (release)@@ -97,12 +97,12 @@ jobs:echo "KIND=release" >> $GITHUB_ENVecho "VERSION=${{ steps.release.outputs.version }}" >> $GITHUB_ENV- - name: Set context (hotfix)- if: steps.hotfix.outputs.should_tag == 'true'+ - name: Set context (patch)+ if: steps.patch.outputs.should_tag == 'true'run: |echo "SHOULD_TAG=true" >> $GITHUB_ENV- echo "KIND=hotfix" >> $GITHUB_ENV- echo "VERSION=${{ steps.hotfix-version.outputs.version }}" >> $GITHUB_ENV+ echo "KIND=patch" >> $GITHUB_ENV+ echo "VERSION=${{ steps.patch-version.outputs.version }}" >> $GITHUB_ENV- name: Check if tag already existsif: env.SHOULD_TAG == 'true'@@ -151,11 +151,7 @@ jobs:# Commit changes (if any) and pushgit add package.json- if [ "$KIND" == "hotfix" ]; then- COMMIT_MSG="π chore(hotfix): bump version to v$VERSION [skip ci]"- else- COMMIT_MSG="π§ chore(release): bump version to v$VERSION [skip ci]"- fi+ COMMIT_MSG="π chore(release): release version v$VERSION [skip ci]"git commit -m "$COMMIT_MSG" || echo "Nothing to commit"git push origin HEAD:main@@ -172,14 +168,8 @@ jobs:# Tag the bumped version commit SHA (not the PR merge commit SHA)TAG_SHA="${{ steps.bump-version.outputs.tag_sha }}"- if [ "$KIND" == "hotfix" ]; then- PREFIX="π hotfix"- else- PREFIX="π release"- fi-# Create annotated tag with single line message- git tag -a "v$VERSION" "$TAG_SHA" -m "$PREFIX: v$VERSION | PR #${{ github.event.pull_request.number }} | Author: ${{ github.event.pull_request.user.login }}"+ git tag -a "v$VERSION" "$TAG_SHA" -m "π release: v$VERSION | PR #${{ github.event.pull_request.number }} | Author: ${{ github.event.pull_request.user.login }}"# Push taggit push origin "v$VERSION"@@ -215,5 +205,5 @@ jobs:echo "β Result: Tag v${{ env.VERSION }} created successfully!"fielse- echo "βΉοΈ Result: Not a release/hotfix PR, no tag created"+ echo "βΉοΈ Result: Not a release/patch PR, no tag created"fi