mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
clean up
This commit is contained in:
@@ -72,8 +72,6 @@ jobs:
|
|||||||
RELEASE_VERSION="${RELEASE_TAG#v}"
|
RELEASE_VERSION="${RELEASE_TAG#v}"
|
||||||
if [[ $RELEASE_VERSION == *-* ]]; then
|
if [[ $RELEASE_VERSION == *-* ]]; then
|
||||||
NPM_TAG=$(echo $RELEASE_VERSION | cut -d'-' -f2 | cut -d'.' -f1)
|
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
|
else
|
||||||
NPM_TAG="latest"
|
NPM_TAG="latest"
|
||||||
fi
|
fi
|
||||||
@@ -105,18 +103,6 @@ jobs:
|
|||||||
git commit -m "chore(release): ${{ steps.version.outputs.RELEASE_TAG }}"
|
git commit -m "chore(release): ${{ steps.version.outputs.RELEASE_TAG }}"
|
||||||
git push --set-upstream origin ${{ steps.release_branch.outputs.BRANCH_NAME }} --follow-tags
|
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
|
- name: Build and Prepare Packages
|
||||||
run: |
|
run: |
|
||||||
npm run build:packages
|
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' || '' }}
|
run: npm publish --workspace=@google/gemini-cli --tag=${{ steps.version.outputs.NPM_TAG }} ${{ inputs.dry_run && '--dry-run' || '' }}
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.WOMBAT_TOKEN_CLI }}
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user