diff --git a/.github/actions/publish-release/action.yml b/.github/actions/publish-release/action.yml index 84d30f6f92..e2b8994e40 100644 --- a/.github/actions/publish-release/action.yml +++ b/.github/actions/publish-release/action.yml @@ -218,7 +218,7 @@ runs: npm publish \ --dry-run="${{ inputs.dry-run }}" \ --workspace="${{ inputs.a2a-package-name }}" \ - --no-TARGET_TAG + --no-tag - name: '🔬 Verify NPM release by version' uses: './.github/actions/verify-release' @@ -234,7 +234,6 @@ runs: - name: '🏷️ Tag release' uses: './.github/actions/tag-npm-release' - if: "${{ inputs.dry-run != 'true' }}" with: channel: '${{ inputs.npm-tag }}' version: '${{ inputs.release-version }}' diff --git a/.github/actions/tag-npm-release/action.yml b/.github/actions/tag-npm-release/action.yml index 440b7b3bc8..7bcafcb6b2 100644 --- a/.github/actions/tag-npm-release/action.yml +++ b/.github/actions/tag-npm-release/action.yml @@ -96,15 +96,25 @@ runs: run: | 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: |- ${{ inputs.dry-run == 'false' }} env: - NODE_AUTH_TOKEN: '${{ inputs.wombat-token-a2a-server }}' + NODE_AUTH_TOKEN: '${{ steps.a2a-token.outputs.auth-token }}' shell: 'bash' working-directory: '${{ inputs.working-directory }}' 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' if: |- @@ -112,4 +122,4 @@ runs: shell: 'bash' working-directory: '${{ inputs.working-directory }}' 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 }}." diff --git a/scripts/prepare-github-release.js b/scripts/prepare-github-release.js index e30ca38a0f..25ff5c4d19 100644 --- a/scripts/prepare-github-release.js +++ b/scripts/prepare-github-release.js @@ -55,6 +55,11 @@ updatePackageJson('packages/cli/package.json', (pkg) => { 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 updatePackageJson('packages/core/package.json', (pkg) => { pkg.name = '@google-gemini/gemini-cli-core';