From 481ba01c973dea73f805ab75e736d24b2aaed07f Mon Sep 17 00:00:00 2001 From: Adam Weidman <65992621+adamfweidman@users.noreply.github.com> Date: Tue, 14 Oct 2025 17:09:17 +0200 Subject: [PATCH] chore: resubmit a2a-publishing after rollout (#11100) --- .github/actions/publish-release/action.yml | 19 +++++++++++++++++++ .github/actions/tag-npm-release/action.yml | 14 +++++++++++++- .github/workflows/release-change-tags.yml | 1 + .github/workflows/release-manual.yml | 1 + .github/workflows/release-nightly.yml | 1 + .github/workflows/release-patch-3-release.yml | 1 + .github/workflows/release-promote.yml | 2 ++ .github/workflows/release-rollback.yml | 9 +++++++++ 8 files changed, 47 insertions(+), 1 deletion(-) diff --git a/.github/actions/publish-release/action.yml b/.github/actions/publish-release/action.yml index ce9a2e4f0c..12d7a4d156 100644 --- a/.github/actions/publish-release/action.yml +++ b/.github/actions/publish-release/action.yml @@ -14,6 +14,9 @@ inputs: wombat-token-cli: description: 'The npm token for the @google/gemini-cli package.' required: true + wombat-token-a2a-server: + description: 'The npm token for the @google/gemini-cli-a2a-server package.' + required: true github-token: description: 'The GitHub token for creating the release.' required: true @@ -169,6 +172,7 @@ runs: run: | npm install "@google/gemini-cli-core@${{ inputs.release-version }}" \ --workspace="@google/gemini-cli" \ + --workspace="@google/gemini-cli-a2a-server" \ --save-exact - name: '📦 Publish @google/gemini-cli to npm' @@ -196,6 +200,20 @@ runs: --workspace="@google-gemini/gemini-cli" \ --no-tag + - name: '📦 Publish @google/gemini-cli-a2a-server' + if: "inputs.registry != 'github'" + working-directory: '${{ inputs.working-directory }}' + env: + NODE_AUTH_TOKEN: '${{ inputs.wombat-token-a2a-server }}' + shell: 'bash' + # Tag staging for initial release + run: | + if [ "${{ inputs.dry-run }}" == "true" ]; then + npm publish --dry-run --workspace="@google/gemini-cli-a2a-server" --tag "staging" + else + npm publish --workspace="@google/gemini-cli-a2a-server" --tag "staging" + fi + - name: '🔬 Verify NPM release by version' uses: './.github/actions/verify-release' if: "${{ inputs.dry-run != 'true' && inputs.force-skip-tests != 'true' && inputs.registry != 'github' }}" @@ -214,6 +232,7 @@ runs: dry-run: '${{ inputs.dry-run }}' wombat-token-core: '${{ inputs.wombat-token-core }}' wombat-token-cli: '${{ inputs.wombat-token-cli }}' + wombat-token-a2a-server: '${{ inputs.wombat-token-a2a-server }}' - name: '🎉 Create GitHub Release' working-directory: '${{ inputs.working-directory }}' diff --git a/.github/actions/tag-npm-release/action.yml b/.github/actions/tag-npm-release/action.yml index 08b4522c49..198442b74f 100644 --- a/.github/actions/tag-npm-release/action.yml +++ b/.github/actions/tag-npm-release/action.yml @@ -17,6 +17,9 @@ inputs: wombat-token-cli: description: 'The npm token for wombat @google/gemini-cli' required: true + wombat-token-a2a-server: + description: 'The npm token for the @google/gemini-cli-a2a-server package.' + required: true runs: using: 'composite' @@ -52,9 +55,18 @@ runs: run: | npm dist-tag add @google/gemini-cli@${{ inputs.version }} ${{ inputs.channel }} + - name: 'Change tag for @google/gemini-cli-a2a-server' + if: |- + ${{ inputs.dry-run == 'false' }} + env: + NODE_AUTH_TOKEN: '${{ inputs.wombat-token-a2a-server }}' + shell: 'bash' + run: | + npm dist-tag add @google/gemini-cli-a2a-server@${{ inputs.version }} ${{ inputs.channel }} + - name: 'Log dry run' if: |- ${{ inputs.dry-run == 'true' }} shell: 'bash' 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 @google/gemini-cli, @google/gemini-cli-core, and @google/gemini-cli-a2a-server." diff --git a/.github/workflows/release-change-tags.yml b/.github/workflows/release-change-tags.yml index 50c2fd6c02..61131072c5 100644 --- a/.github/workflows/release-change-tags.yml +++ b/.github/workflows/release-change-tags.yml @@ -54,3 +54,4 @@ jobs: dry-run: '${{ github.event.inputs.dry-run }}' wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}' wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}' + wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}' diff --git a/.github/workflows/release-manual.yml b/.github/workflows/release-manual.yml index 73714e0988..310fdbdf61 100644 --- a/.github/workflows/release-manual.yml +++ b/.github/workflows/release-manual.yml @@ -104,6 +104,7 @@ jobs: npm-tag: '${{ github.event.inputs.npm_channel }}' wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}' wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}' + wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}' github-token: '${{ secrets.GITHUB_TOKEN }}' dry-run: '${{ github.event.inputs.dry_run }}' previous-tag: '${{ steps.release_info.outputs.PREVIOUS_TAG }}' diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 5b59e98603..917e158538 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -112,6 +112,7 @@ jobs: npm-tag: '${{ steps.nightly_version.outputs.NPM_TAG }}' wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}' wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}' + wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}' github-token: '${{ secrets.GITHUB_TOKEN }}' dry-run: '${{ steps.vars.outputs.is_dry_run }}' previous-tag: '${{ steps.nightly_version.outputs.PREVIOUS_TAG }}' diff --git a/.github/workflows/release-patch-3-release.yml b/.github/workflows/release-patch-3-release.yml index 53cd714c00..2dca7be7db 100644 --- a/.github/workflows/release-patch-3-release.yml +++ b/.github/workflows/release-patch-3-release.yml @@ -159,6 +159,7 @@ jobs: npm-tag: '${{ steps.patch_version.outputs.NPM_TAG }}' wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}' wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}' + wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}' github-token: '${{ secrets.GITHUB_TOKEN }}' dry-run: '${{ github.event.inputs.dry_run }}' previous-tag: '${{ steps.patch_version.outputs.PREVIOUS_TAG }}' diff --git a/.github/workflows/release-promote.yml b/.github/workflows/release-promote.yml index f54925f438..f2c578df27 100644 --- a/.github/workflows/release-promote.yml +++ b/.github/workflows/release-promote.yml @@ -204,6 +204,7 @@ jobs: npm-tag: 'preview' wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}' wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}' + wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}' github-token: '${{ secrets.GITHUB_TOKEN }}' dry-run: '${{ github.event.inputs.dry_run }}' previous-tag: '${{ needs.calculate-versions.outputs.PREVIOUS_PREVIEW_TAG }}' @@ -262,6 +263,7 @@ jobs: npm-tag: 'latest' wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}' wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}' + wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}' github-token: '${{ secrets.GITHUB_TOKEN }}' dry-run: '${{ github.event.inputs.dry_run }}' previous-tag: '${{ needs.calculate-versions.outputs.PREVIOUS_STABLE_TAG }}' diff --git a/.github/workflows/release-rollback.yml b/.github/workflows/release-rollback.yml index 735a2e4660..e2d3518180 100644 --- a/.github/workflows/release-rollback.yml +++ b/.github/workflows/release-rollback.yml @@ -76,6 +76,7 @@ jobs: dry-run: '${{ github.event.inputs.dry-run }}' wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}' wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}' + wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}' - name: 'Deprecate Cli Npm Package' if: "${{ github.event.inputs.dry-run == 'false' }}" @@ -93,6 +94,14 @@ jobs: run: | npm deprecate @google/gemini-core@${{ github.event.inputs.rollback_origin }} "This version has been rolled back." + - name: 'Deprecate A2A Server Npm Package' + if: "${{ github.event.inputs.dry-run == 'false' }}" + env: + NODE_AUTH_TOKEN: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}' + shell: 'bash' + run: | + npm deprecate @google/gemini-cli-a2a-server@${{ github.event.inputs.rollback_origin }} "This version has been rolled back." + - name: 'Delete Github Release' if: "${{ github.event.inputs.dry-run == 'false' }}" env: