From b1fbe7b0ec56a9fd0befe30431593e14b88f695d Mon Sep 17 00:00:00 2001 From: mkorwel Date: Fri, 4 Jul 2025 00:53:35 -0700 Subject: [PATCH] clean up --- .github/workflows/release.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b277d82ac4..524dfaffea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,8 +72,6 @@ jobs: RELEASE_VERSION="${RELEASE_TAG#v}" if [[ $RELEASE_VERSION == *-* ]]; then NPM_TAG=$(echo $RELEASE_VERSION | cut -d'-' -f2 | cut -d'.' -f1) - elif [[ $RELEASE_VERSION == *+* ]]; then - NPM_TAG=$(echo $RELEASE_VERSION | cut -d'+' -f2 | cut -d'.' -f1) else NPM_TAG="latest" fi @@ -105,18 +103,6 @@ jobs: git commit -m "chore(release): ${{ steps.version.outputs.RELEASE_TAG }}" git push --set-upstream origin ${{ steps.release_branch.outputs.BRANCH_NAME }} --follow-tags - - name: Create GitHub Release and Tag - if: '!inputs.dry_run' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_BRANCH: ${{ steps.release_branch.outputs.BRANCH_NAME }} - run: | - gh release create ${{ steps.version.outputs.RELEASE_TAG }} \ - bundle/gemini.js \ - --target "$RELEASE_BRANCH" \ - --title "Release ${{ steps.version.outputs.RELEASE_TAG }}" \ - --generate-notes - - name: Build and Prepare Packages run: | npm run build:packages @@ -141,3 +127,15 @@ jobs: run: npm publish --workspace=@google/gemini-cli --tag=${{ steps.version.outputs.NPM_TAG }} ${{ inputs.dry_run && '--dry-run' || '' }} env: NODE_AUTH_TOKEN: ${{ secrets.WOMBAT_TOKEN_CLI }} + + - name: Create GitHub Release and Tag + if: '!inputs.dry_run' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RELEASE_BRANCH: ${{ steps.release_branch.outputs.BRANCH_NAME }} + run: | + gh release create ${{ steps.version.outputs.RELEASE_TAG }} \ + bundle/gemini.js \ + --target "$RELEASE_BRANCH" \ + --title "Release ${{ steps.version.outputs.RELEASE_TAG }}" \ + --generate-notes