Skip to content

Commit 9d5059e

Browse files
committed
chore: release workflow fixes
1 parent a2cbf61 commit 9d5059e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release-it.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
workflow_dispatch:
88
inputs:
99
type:
10-
description: 'Type. Can be `beta`, `patch`, `minor` or `major`'
11-
required: true
10+
description: 'Type/Options. `major --preRelease=beta`, `--preRelease`, `major`, `patch`, `minor` or `major`'
11+
required: false
1212
default: 'patch'
1313

1414
jobs:
@@ -49,5 +49,6 @@ jobs:
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5151
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52-
run: |
53-
npx release-it ${{github.event.inputs.type}} --ci --verbose
52+
run: |
53+
# When all commits since the latest major tag should be added to the changelog, use --git.tagExclude='*[-]*'
54+
npx release-it ${{github.event.inputs.type}} --git.tagExclude='*[-]*' --ci --verbose

0 commit comments

Comments
 (0)