We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8356fe3 commit cef984aCopy full SHA for cef984a
.github/workflows/publish.yml
@@ -1,7 +1,18 @@
1
name: Publish to npm
2
3
on:
4
- workflow_dispatch: ~
+ workflow_dispatch:
5
+ inputs:
6
+ bump:
7
+ description: 'Version bump type'
8
+ required: true
9
+ default: 'minor'
10
+ type: choice
11
+ options:
12
+ - patch
13
+ - minor
14
+ - major
15
+
16
push:
17
branches:
18
- main
@@ -40,7 +51,7 @@ jobs:
40
51
run: |
41
52
git config --global user.name "github-actions[bot]"
42
53
git config --global user.email "github-actions[bot]@users.noreply.github.com"
43
- TAG=$(npm version minor -m "Release %s [skip ci]")
54
+ TAG=$(npm version ${{ github.event.inputs.bump || 'minor' }} -m "Release %s [skip ci]")
44
55
echo "Created tag: $TAG"
45
56
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
46
57
git push origin main --follow-tags
0 commit comments