Add skip_github_release option to Manual Release. (#8932)

This commit is contained in:
Tommaso Sciortino
2025-09-19 12:13:33 -07:00
committed by GitHub
parent 4c43c69d35
commit b9f6283a8e
2 changed files with 12 additions and 1 deletions

View File

@@ -27,6 +27,11 @@ inputs:
previous-tag:
description: 'The previous tag to use for generating release notes.'
required: true
skip-github-release:
description: 'Whether to skip creating a GitHub release.'
type: 'boolean'
required: false
default: false
working-directory:
description: 'The working directory to run the steps in.'
required: false
@@ -132,7 +137,7 @@ runs:
- name: '🎉 Create GitHub Release'
working-directory: '${{ inputs.working-directory }}'
if: "${{ inputs.dry-run == 'false' }}"
if: "${{ inputs.dry-run == 'false' && inputs.skip-github-release == 'false' }}"
env:
GITHUB_TOKEN: '${{ inputs.github-token }}'
shell: 'bash'

View File

@@ -31,6 +31,11 @@ on:
required: false
type: 'boolean'
default: false
skip_github_release:
description: 'Select to skip creating a GitHub release and create a npm release only.'
required: false
type: 'boolean'
default: false
jobs:
release:
@@ -80,3 +85,4 @@ jobs:
github-token: '${{ secrets.GITHUB_TOKEN }}'
dry-run: '${{ github.event.inputs.dry_run }}'
previous-tag: '${{ steps.release_info.outputs.PREVIOUS_TAG }}'
skip-github-release: '${{ github.event.inputs.skip_github_release }}'