mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
Release: Ensure Tag Modification works (#8931)
Co-authored-by: gemini-cli-robot <gemini-cli-robot@google.com>
This commit is contained in:
@@ -8,14 +8,19 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: 'string'
|
type: 'string'
|
||||||
channel:
|
channel:
|
||||||
description: 'The npm dist-tag to apply (e.g., preview, stable).'
|
description: 'The npm dist-tag to apply (e.g., latest, preview, nightly).'
|
||||||
required: true
|
required: true
|
||||||
type: 'choice'
|
type: 'choice'
|
||||||
options:
|
options:
|
||||||
- 'stable'
|
- 'latest'
|
||||||
- 'preview'
|
- 'preview'
|
||||||
- 'nightly'
|
- 'nightly'
|
||||||
dry_run:
|
ref:
|
||||||
|
description: 'The branch, tag, or SHA to run from.'
|
||||||
|
required: false
|
||||||
|
type: 'string'
|
||||||
|
default: 'main'
|
||||||
|
dry-run:
|
||||||
description: 'Whether to run in dry-run mode.'
|
description: 'Whether to run in dry-run mode.'
|
||||||
required: false
|
required: false
|
||||||
type: 'boolean'
|
type: 'boolean'
|
||||||
@@ -28,6 +33,12 @@ jobs:
|
|||||||
packages: 'write'
|
packages: 'write'
|
||||||
issues: 'write'
|
issues: 'write'
|
||||||
steps:
|
steps:
|
||||||
|
- name: 'Checkout repository'
|
||||||
|
uses: 'actions/checkout@v4'
|
||||||
|
with:
|
||||||
|
ref: '${{ github.event.inputs.ref }}'
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: 'Setup Node.js'
|
- name: 'Setup Node.js'
|
||||||
uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020'
|
uses: 'actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020'
|
||||||
with:
|
with:
|
||||||
@@ -36,20 +47,23 @@ jobs:
|
|||||||
scope: '@google'
|
scope: '@google'
|
||||||
|
|
||||||
- name: 'Change tag for @google/gemini-cli-core'
|
- name: 'Change tag for @google/gemini-cli-core'
|
||||||
if: 'github.event.inputs.dry_run == false'
|
if: |-
|
||||||
|
${{ github.event.inputs.dry-run == 'false' }}
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: '${{ secrets.WOMBAT_TOKEN_CORE }}'
|
NODE_AUTH_TOKEN: '${{ secrets.WOMBAT_TOKEN_CORE }}'
|
||||||
run: |
|
run: |
|
||||||
npm dist-tag add @google/gemini-cli-core@${{ github.event.inputs.version }} ${{ github.event.inputs.channel }}
|
npm dist-tag add @google/gemini-cli-core@${{ github.event.inputs.version }} ${{ github.event.inputs.channel }}
|
||||||
|
|
||||||
- name: 'Change tag for @google/gemini-cli'
|
- name: 'Change tag for @google/gemini-cli'
|
||||||
if: 'github.event.inputs.dry_run == false'
|
if: |-
|
||||||
|
${{ github.event.inputs.dry-run == 'false' }}
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
NODE_AUTH_TOKEN: '${{ secrets.WOMBAT_TOKEN_CLI }}'
|
||||||
run: |
|
run: |
|
||||||
npm dist-tag add @google/gemini-cli@${{ github.event.inputs.version }} ${{ github.event.inputs.channel }}
|
npm dist-tag add @google/gemini-cli@${{ github.event.inputs.version }} ${{ github.event.inputs.channel }}
|
||||||
|
|
||||||
- name: 'Log dry run'
|
- name: 'Log dry run'
|
||||||
if: 'github.event.inputs.dry_run == true'
|
if: |-
|
||||||
|
${{ github.event.inputs.dry-run == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
echo "Dry run: Would have added tag '${{ github.event.inputs.channel }}' to version '${{ github.event.inputs.version }}' for @google/gemini-cli and @google/gemini-cli-core."
|
echo "Dry run: Would have added tag '${{ github.event.inputs.channel }}' to version '${{ github.event.inputs.version }}' for @google/gemini-cli and @google/gemini-cli-core."
|
||||||
|
|||||||
Reference in New Issue
Block a user