handle versions for nightly

This commit is contained in:
mkorwel
2025-07-04 00:19:51 -07:00
parent 97900e31c4
commit 11472c6fc2

View File

@@ -93,10 +93,19 @@ jobs:
git switch -c $BRANCH_NAME
echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_OUTPUT
- name: Update package versions
- name: Update package versions for stable release
if: steps.version.outputs.NPM_TAG != 'nightly'
run: |
npm run release:version ${{ steps.version.outputs.RELEASE_VERSION }}
- name: Set package versions for nightly release
if: steps.version.outputs.NPM_TAG == 'nightly'
run: |
npm pkg set version=${{ steps.version.outputs.RELEASE_VERSION }}
npm pkg set version=${{ steps.version.outputs.RELEASE_VERSION }} --workspace=@google/gemini-cli
npm pkg set version=${{ steps.version.outputs.RELEASE_VERSION }} --workspace=@google/gemini-cli-core
npm install
- name: Commit package versions
id: commit_step
run: |