@@ -27,10 +27,19 @@ inputs:
2727 previous-tag :
2828 description : ' The previous tag to use for generating release notes.'
2929 required : true
30+ skip-github-release :
31+ description : ' Whether to skip creating a GitHub release.'
32+ type : ' boolean'
33+ required : false
34+ default : false
3035 working-directory :
3136 description : ' The working directory to run the steps in.'
3237 required : false
3338 default : ' .'
39+ force-skip-tests :
40+ description : ' Skip tests and validation'
41+ required : false
42+ default : false
3443
3544runs :
3645 using : ' composite'
@@ -102,7 +111,7 @@ runs:
102111 npm publish \
103112 --dry-run="${{ inputs.dry-run }}" \
104113 --workspace="@google/gemini-cli-core" \
105- --tag="${{ inputs.npm -tag }}"
114+ --no -tag
106115
107116 - name : ' 🔗 Install latest core package'
108117 working-directory : ' ${{ inputs.working-directory }}'
@@ -122,7 +131,31 @@ runs:
122131 npm publish \
123132 --dry-run="${{ inputs.dry-run }}" \
124133 --workspace="@google/gemini-cli" \
125- --tag="${{ inputs.npm-tag }}"
134+ --no-tag
135+
136+ - name : ' 🔬 Verify NPM release by version'
137+ uses : ' ./.github/actions/verify-release'
138+ if : " ${{ inputs.dry-run == 'false' && inputs.force-skip-tests == 'false' }}"
139+ with :
140+ npm-package : ' @google/gemini-cli@${{ inputs.release-version }}'
141+ expected-version : ' ${{ inputs.release-version }}'
142+ ref : ' ${{ steps.release_branch.outputs.BRANCH_NAME }}'
143+
144+ - name : ' 🏷️ Tag release'
145+ uses : ' ./.github/actions/tag-npm-release'
146+ if : " ${{ inputs.dry-run == 'false' }}"
147+ with :
148+ channel : ' ${{ inputs.npm-tag }}'
149+ version : ' ${{ inputs.release-version }}'
150+ dry-run : ' ${{ inputs.dry-run }}'
151+ wombat-token-core : ' ${{ inputs.wombat-token-core }}'
152+ wombat-token-cli : ' ${{ inputs.wombat-token-cli }}'
153+
154+ - name : ' Install deps'
155+ working-directory : ' ${{ inputs.working-directory }}'
156+ shell : ' bash'
157+ run : |
158+ npm install
126159
127160 - name : ' 🎁 Bundle'
128161 working-directory : ' ${{ inputs.working-directory }}'
@@ -132,7 +165,7 @@ runs:
132165
133166 - name : ' 🎉 Create GitHub Release'
134167 working-directory : ' ${{ inputs.working-directory }}'
135- if : " ${{ inputs.dry-run == 'false' }}"
168+ if : " ${{ inputs.dry-run == 'false' && inputs.skip-github-release == 'false' && inputs.npm-tag != 'dev' }}"
136169 env :
137170 GITHUB_TOKEN : ' ${{ inputs.github-token }}'
138171 shell : ' bash'
@@ -143,3 +176,12 @@ runs:
143176 --title "Release ${{ inputs.release-tag }}" \
144177 --notes-start-tag "${{ inputs.previous-tag }}" \
145178 --generate-notes
179+
180+ - name : ' 🧹 Clean up release branch'
181+ working-directory : ' ${{ inputs.working-directory }}'
182+ if : " ${{ inputs.dry-run == 'false' }}"
183+ continue-on-error : true
184+ shell : ' bash'
185+ run : |
186+ echo "Cleaning up release branch ${{ steps.release_branch.outputs.BRANCH_NAME }}..."
187+ git push origin --delete "${{ steps.release_branch.outputs.BRANCH_NAME }}"
0 commit comments