mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 04:24:51 -07:00
Fix dry run. (#10286)
This commit is contained in:
committed by
GitHub
parent
46c884de51
commit
a80cd28d4c
@@ -116,10 +116,11 @@ runs:
|
|||||||
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-core }}'
|
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-core }}'
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
run: |
|
run: |
|
||||||
npm publish \
|
if [ "${{ inputs.dry-run }}" == "true" ]; then
|
||||||
--dry-run="${{ inputs.dry-run }}" \
|
npm publish --dry-run --workspace="@google/gemini-cli-core" --no-tag
|
||||||
--workspace="@google/gemini-cli-core" \
|
else
|
||||||
--no-tag
|
npm publish --workspace="@google/gemini-cli-core" --no-tag
|
||||||
|
fi
|
||||||
|
|
||||||
- name: '🔗 Install latest core package'
|
- name: '🔗 Install latest core package'
|
||||||
working-directory: '${{ inputs.working-directory }}'
|
working-directory: '${{ inputs.working-directory }}'
|
||||||
@@ -136,10 +137,11 @@ runs:
|
|||||||
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-cli }}'
|
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-cli }}'
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
run: |
|
run: |
|
||||||
npm publish \
|
if [ "${{ inputs.dry-run }}" == "true" ]; then
|
||||||
--dry-run="${{ inputs.dry-run }}" \
|
npm publish --dry-run --workspace="@google/gemini-cli" --no-tag
|
||||||
--workspace="@google/gemini-cli" \
|
else
|
||||||
--no-tag
|
npm publish --workspace="@google/gemini-cli" --no-tag
|
||||||
|
fi
|
||||||
|
|
||||||
- name: '🔬 Verify NPM release by version'
|
- name: '🔬 Verify NPM release by version'
|
||||||
uses: './.github/actions/verify-release'
|
uses: './.github/actions/verify-release'
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ runs:
|
|||||||
echo "uri=$(cat final_image_uri.txt)" >> $GITHUB_OUTPUT
|
echo "uri=$(cat final_image_uri.txt)" >> $GITHUB_OUTPUT
|
||||||
- name: 'publish'
|
- name: 'publish'
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
if: "${{ inputs.dry-run == 'false' }}"
|
if: "${{ inputs.dry-run != 'true' }}"
|
||||||
run: |-
|
run: |-
|
||||||
docker push "${{ steps.docker_build.outputs.uri }}"
|
docker push "${{ steps.docker_build.outputs.uri }}"
|
||||||
- name: 'Create issue on failure'
|
- name: 'Create issue on failure'
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ runs:
|
|||||||
|
|
||||||
- name: 'Change tag for @google/gemini-cli-core'
|
- name: 'Change tag for @google/gemini-cli-core'
|
||||||
if: |-
|
if: |-
|
||||||
${{ inputs.dry-run == 'false' }}
|
${{ inputs.dry-run != 'true' }}
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-core }}'
|
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-core }}'
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
@@ -42,7 +42,7 @@ runs:
|
|||||||
|
|
||||||
- name: 'Change tag for @google/gemini-cli'
|
- name: 'Change tag for @google/gemini-cli'
|
||||||
if: |-
|
if: |-
|
||||||
${{ inputs.dry-run == 'false' }}
|
${{ inputs.dry-run != 'true' }}
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-cli }}'
|
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-cli }}'
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
|
|||||||
Reference in New Issue
Block a user