mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-02-01 22:48:03 +00:00
fix(ci): Fix a2a publishing (#11211)
Co-authored-by: mkorwel <matt.korwel@gmail.com>
This commit is contained in:
3
.github/actions/publish-release/action.yml
vendored
3
.github/actions/publish-release/action.yml
vendored
@@ -218,7 +218,7 @@ runs:
|
|||||||
npm publish \
|
npm publish \
|
||||||
--dry-run="${{ inputs.dry-run }}" \
|
--dry-run="${{ inputs.dry-run }}" \
|
||||||
--workspace="${{ inputs.a2a-package-name }}" \
|
--workspace="${{ inputs.a2a-package-name }}" \
|
||||||
--no-TARGET_TAG
|
--no-tag
|
||||||
|
|
||||||
- name: '🔬 Verify NPM release by version'
|
- name: '🔬 Verify NPM release by version'
|
||||||
uses: './.github/actions/verify-release'
|
uses: './.github/actions/verify-release'
|
||||||
@@ -234,7 +234,6 @@ runs:
|
|||||||
|
|
||||||
- name: '🏷️ Tag release'
|
- name: '🏷️ Tag release'
|
||||||
uses: './.github/actions/tag-npm-release'
|
uses: './.github/actions/tag-npm-release'
|
||||||
if: "${{ inputs.dry-run != 'true' }}"
|
|
||||||
with:
|
with:
|
||||||
channel: '${{ inputs.npm-tag }}'
|
channel: '${{ inputs.npm-tag }}'
|
||||||
version: '${{ inputs.release-version }}'
|
version: '${{ inputs.release-version }}'
|
||||||
|
|||||||
18
.github/actions/tag-npm-release/action.yml
vendored
18
.github/actions/tag-npm-release/action.yml
vendored
@@ -96,15 +96,25 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
npm dist-tag add ${{ inputs.cli-package-name }}@${{ inputs.version }} ${{ inputs.channel }}
|
npm dist-tag add ${{ inputs.cli-package-name }}@${{ inputs.version }} ${{ inputs.channel }}
|
||||||
|
|
||||||
- name: 'Change tag for @google/gemini-cli-a2a-server'
|
- name: 'Get a2a Token'
|
||||||
|
uses: './.github/actions/npm-auth-token'
|
||||||
|
id: 'a2a-token'
|
||||||
|
with:
|
||||||
|
package-name: '${{ inputs.a2a-package-name }}'
|
||||||
|
github-token: '${{ inputs.github-token }}'
|
||||||
|
wombat-token-core: '${{ inputs.wombat-token-core }}'
|
||||||
|
wombat-token-cli: '${{ inputs.wombat-token-cli }}'
|
||||||
|
wombat-token-a2a-server: '${{ inputs.wombat-token-a2a-server }}'
|
||||||
|
|
||||||
|
- name: 'Change tag for a2a'
|
||||||
if: |-
|
if: |-
|
||||||
${{ inputs.dry-run == 'false' }}
|
${{ inputs.dry-run == 'false' }}
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-a2a-server }}'
|
NODE_AUTH_TOKEN: '${{ steps.a2a-token.outputs.auth-token }}'
|
||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
working-directory: '${{ inputs.working-directory }}'
|
working-directory: '${{ inputs.working-directory }}'
|
||||||
run: |
|
run: |
|
||||||
npm dist-tag add @google/gemini-cli-a2a-server@${{ inputs.version }} ${{ inputs.channel }}
|
npm dist-tag add ${{ inputs.a2a-package-name }}@${{ inputs.version }} ${{ inputs.channel }}
|
||||||
|
|
||||||
- name: 'Log dry run'
|
- name: 'Log dry run'
|
||||||
if: |-
|
if: |-
|
||||||
@@ -112,4 +122,4 @@ runs:
|
|||||||
shell: 'bash'
|
shell: 'bash'
|
||||||
working-directory: '${{ inputs.working-directory }}'
|
working-directory: '${{ inputs.working-directory }}'
|
||||||
run: |
|
run: |
|
||||||
echo "Dry run: Would have added tag '${{ inputs.channel }}' to version '${{ inputs.version }}' for @google/gemini-cli and @google/gemini-cli-core."
|
echo "Dry run: Would have added tag '${{ inputs.channel }}' to version '${{ inputs.version }}' for ${{ inputs.cli-package-name }}, ${{ inputs.core-package-name }}, and ${{ inputs.a2a-package-name }}."
|
||||||
|
|||||||
@@ -55,6 +55,11 @@ updatePackageJson('packages/cli/package.json', (pkg) => {
|
|||||||
delete pkg.config; // Deletes the sandboxImageUri
|
delete pkg.config; // Deletes the sandboxImageUri
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Update @google/gemini-cli-a2a-server
|
||||||
|
updatePackageJson('packages/a2a-server/package.json', (pkg) => {
|
||||||
|
pkg.name = '@google-gemini/gemini-cli-a2a-server';
|
||||||
|
});
|
||||||
|
|
||||||
// Update @google/gemini-cli-core
|
// Update @google/gemini-cli-core
|
||||||
updatePackageJson('packages/core/package.json', (pkg) => {
|
updatePackageJson('packages/core/package.json', (pkg) => {
|
||||||
pkg.name = '@google-gemini/gemini-cli-core';
|
pkg.name = '@google-gemini/gemini-cli-core';
|
||||||
|
|||||||
Reference in New Issue
Block a user