feat(ci): Update release to use github env variables. (#11068)

This commit is contained in:
Richie Foreman
2025-10-15 09:48:03 -04:00
committed by GitHub
parent 203bad7c06
commit 984415f6c7
13 changed files with 394 additions and 152 deletions
@@ -28,10 +28,19 @@ on:
description: 'The original PR number to comment back on.'
required: false
type: 'string'
environment:
description: 'Environment'
required: false
type: 'choice'
options:
- 'prod'
## - 'dev' # TODO(richieforeman) - support dev
default: 'prod'
jobs:
release:
runs-on: 'ubuntu-latest'
environment: '${{ github.event.inputs.environment }}'
permissions:
contents: 'write'
packages: 'write'
@@ -165,6 +174,12 @@ jobs:
previous-tag: '${{ steps.patch_version.outputs.PREVIOUS_TAG }}'
working-directory: './release'
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
npm-registry-publish-url: '${{ vars.NPM_REGISTRY_PUBLISH_URL }}'
npm-registry-url: '${{ vars.NPM_REGISTRY_URL }}'
npm-registry-scope: '${{ vars.NPM_REGISTRY_SCOPE }}'
cli-package-name: '${{ vars.CLI_PACKAGE_NAME }}'
core-package-name: '${{ vars.CORE_PACKAGE_NAME }}'
a2a-package-name: '${{ vars.A2A_PACKAGE_NAME }}'
- name: 'Create Issue on Failure'
if: '${{ failure() && github.event.inputs.dry_run == false }}'