Skip to content

Commit 6feb451

Browse files
committed
skip github release.
1 parent 92c99d7 commit 6feb451

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ 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
@@ -138,7 +143,7 @@ runs:
138143
139144
- name: '🎉 Create GitHub Release'
140145
working-directory: '${{ inputs.working-directory }}'
141-
if: "${{ inputs.dry-run == 'false' }}"
146+
if: "${{ inputs.dry-run == 'false' && inputs.skip_github_release == 'false' }}"
142147
env:
143148
GITHUB_TOKEN: '${{ inputs.github-token }}'
144149
shell: 'bash'

.github/workflows/release-manual.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ on:
2929
required: false
3030
type: 'boolean'
3131
default: false
32+
skip_github_release:
33+
description: 'Select to skip creating a GitHub release and create a npm release only.'
34+
required: false
35+
type: 'boolean'
36+
default: false
3237

3338
jobs:
3439
release:
@@ -78,3 +83,4 @@ jobs:
7883
github-token: '${{ secrets.GITHUB_TOKEN }}'
7984
dry-run: '${{ github.event.inputs.dry_run }}'
8085
previous-tag: '${{ steps.release_info.outputs.PREVIOUS_TAG }}'
86+
skip_github_release: '${{ github.event.inputs.skip_github_release }}'

0 commit comments

Comments
 (0)