Skip to content

Commit 179c49a

Browse files
committed
Merge Commit 'cfb71b9': chore: wire a2a-server up for publishing (google-gemini#10627)
2 parents 036df8b + cfb71b9 commit 179c49a

File tree

9 files changed

+47
-2
lines changed

9 files changed

+47
-2
lines changed

.github/actions/publish-release/action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ inputs:
1414
wombat-token-cli:
1515
description: 'The npm token for the @thacio/auditaria-cli package.'
1616
required: true
17+
wombat-token-a2a-server:
18+
description: 'The npm token for the @thacio/auditaria-cli-a2a-server package.'
19+
required: true
1720
github-token:
1821
description: 'The GitHub token for creating the release.'
1922
required: true
@@ -169,6 +172,7 @@ runs:
169172
run: |
170173
npm install "@thacio/auditaria-cli-core@${{ inputs.release-version }}" \
171174
--workspace="@thacio/auditaria-cli" \
175+
--workspace="@thacio/auditaria-cli-a2a-server" \
172176
--save-exact
173177
174178
- name: '📦 Publish @thacio/auditaria-cli to npm'
@@ -196,6 +200,19 @@ runs:
196200
--workspace="@thacio/auditaria-cli" \
197201
--no-tag
198202
203+
- name: '📦 Publish @thacio/auditaria-cli-a2a-server'
204+
if: "inputs.registry != 'github'"
205+
working-directory: '${{ inputs.working-directory }}'
206+
env:
207+
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-a2a-server }}'
208+
shell: 'bash'
209+
run: |
210+
if [ "${{ inputs.dry-run }}" == "true" ]; then
211+
npm publish --dry-run --workspace="@thacio/auditaria-cli-a2a-server" --no-tag
212+
else
213+
npm publish --workspace="@thacio/auditaria-cli-a2a-server" --no-tag
214+
fi
215+
199216
- name: '🔬 Verify NPM release by version'
200217
uses: './.github/actions/verify-release'
201218
if: "${{ inputs.dry-run != 'true' && inputs.force-skip-tests != 'true' && inputs.registry != 'github' }}"
@@ -214,6 +231,7 @@ runs:
214231
dry-run: '${{ inputs.dry-run }}'
215232
wombat-token-core: '${{ inputs.wombat-token-core }}'
216233
wombat-token-cli: '${{ inputs.wombat-token-cli }}'
234+
wombat-token-a2a-server: '${{ inputs.wombat-token-a2a-server }}'
217235

218236
- name: '🎉 Create GitHub Release'
219237
working-directory: '${{ inputs.working-directory }}'

.github/actions/tag-npm-release/action.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ inputs:
1717
wombat-token-cli:
1818
description: 'The npm token for wombat @thacio/auditaria-cli'
1919
required: true
20+
wombat-token-a2a-server:
21+
description: 'The npm token for the @thacio/auditaria-cli-a2a-server package.'
22+
required: true
2023

2124
runs:
2225
using: 'composite'
@@ -52,9 +55,18 @@ runs:
5255
run: |
5356
npm dist-tag add @thacio/auditaria-cli@${{ inputs.version }} ${{ inputs.channel }}
5457
58+
- name: 'Change tag for @thacio/auditaria-cli-a2a-server'
59+
if: |-
60+
${{ inputs.dry-run == 'false' }}
61+
env:
62+
NODE_AUTH_TOKEN: '${{ inputs.wombat-token-a2a-server }}'
63+
shell: 'bash'
64+
run: |
65+
npm dist-tag add @thacio/auditaria-cli-a2a-server@${{ inputs.version }} ${{ inputs.channel }}
66+
5567
- name: 'Log dry run'
5668
if: |-
5769
${{ inputs.dry-run == 'true' }}
5870
shell: 'bash'
5971
run: |
60-
echo "Dry run: Would have added tag '${{ inputs.channel }}' to version '${{ inputs.version }}' for @thacio/auditaria-cli and @thacio/auditaria-cli-core."
72+
echo "Dry run: Would have added tag '${{ inputs.channel }}' to version '${{ inputs.version }}' for @thacio/auditaria-cli, @thacio/auditaria-cli-core, and @thacio/auditaria-cli-a2a-server."

.github/workflows/release-change-tags.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ jobs:
5454
dry-run: '${{ github.event.inputs.dry-run }}'
5555
wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}'
5656
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
57+
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'

.github/workflows/release-manual.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
npm-tag: '${{ github.event.inputs.npm_channel }}'
105105
wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}'
106106
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
107+
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
107108
github-token: '${{ secrets.GITHUB_TOKEN }}'
108109
dry-run: '${{ github.event.inputs.dry_run }}'
109110
previous-tag: '${{ steps.release_info.outputs.PREVIOUS_TAG }}'

.github/workflows/release-nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
npm-tag: '${{ steps.nightly_version.outputs.NPM_TAG }}'
113113
wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}'
114114
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
115+
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
115116
github-token: '${{ secrets.GITHUB_TOKEN }}'
116117
dry-run: '${{ steps.vars.outputs.is_dry_run }}'
117118
previous-tag: '${{ steps.nightly_version.outputs.PREVIOUS_TAG }}'

.github/workflows/release-patch-3-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ jobs:
159159
npm-tag: '${{ steps.patch_version.outputs.NPM_TAG }}'
160160
wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}'
161161
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
162+
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
162163
github-token: '${{ secrets.GITHUB_TOKEN }}'
163164
dry-run: '${{ github.event.inputs.dry_run }}'
164165
previous-tag: '${{ steps.patch_version.outputs.PREVIOUS_TAG }}'

.github/workflows/release-promote.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ jobs:
204204
npm-tag: 'preview'
205205
wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}'
206206
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
207+
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
207208
github-token: '${{ secrets.GITHUB_TOKEN }}'
208209
dry-run: '${{ github.event.inputs.dry_run }}'
209210
previous-tag: '${{ needs.calculate-versions.outputs.PREVIOUS_PREVIEW_TAG }}'
@@ -262,6 +263,7 @@ jobs:
262263
npm-tag: 'latest'
263264
wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}'
264265
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
266+
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
265267
github-token: '${{ secrets.GITHUB_TOKEN }}'
266268
dry-run: '${{ github.event.inputs.dry_run }}'
267269
previous-tag: '${{ needs.calculate-versions.outputs.PREVIOUS_STABLE_TAG }}'

.github/workflows/release-rollback.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
dry-run: '${{ github.event.inputs.dry-run }}'
7777
wombat-token-core: '${{ secrets.WOMBAT_TOKEN_CORE }}'
7878
wombat-token-cli: '${{ secrets.WOMBAT_TOKEN_CLI }}'
79+
wombat-token-a2a-server: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
7980

8081
- name: 'Deprecate Cli Npm Package'
8182
if: "${{ github.event.inputs.dry-run == 'false' }}"
@@ -93,6 +94,14 @@ jobs:
9394
run: |
9495
npm deprecate @thacio/auditaria-cli-core@${{ github.event.inputs.rollback_origin }} "This version has been rolled back."
9596
97+
- name: 'Deprecate A2A Server Npm Package'
98+
if: "${{ github.event.inputs.dry-run == 'false' }}"
99+
env:
100+
NODE_AUTH_TOKEN: '${{ secrets.WOMBAT_TOKEN_A2A_SERVER }}'
101+
shell: 'bash'
102+
run: |
103+
npm deprecate @thacio/auditaria-cli-a2a-server@${{ github.event.inputs.rollback_origin }} "This version has been rolled back."
104+
96105
- name: 'Delete Github Release'
97106
if: "${{ github.event.inputs.dry-run == 'false' }}"
98107
env:

packages/a2a-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"directory": "packages/a2a-server"
1010
},
1111
"type": "module",
12-
"main": "dist/index.js",
12+
"main": "dist/server.js",
1313
"bin": {
1414
"auditaria-cli-a2a-server": "dist/a2a-server.mjs"
1515
},

0 commit comments

Comments
 (0)