File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,21 @@ name: publish
23
23
on :
24
24
# Allow the workflow to be manually run:
25
25
workflow_dispatch :
26
+ # Workflow inputs:
27
+ inputs :
28
+ version :
29
+ description : ' Version Increment'
30
+ type : choice
31
+ default : ' none'
32
+ options :
33
+ - ' none'
34
+ - ' major'
35
+ - ' minor'
36
+ - ' patch'
37
+ - ' premajor'
38
+ - ' preminor'
39
+ - ' prepatch'
40
+ - ' prerelease'
26
41
27
42
# Workflow jobs:
28
43
jobs :
54
69
node-version : 16
55
70
timeout-minutes : 5
56
71
72
+ # Increment package version (if requested):
73
+ - name : ' Increment package version (if requested)'
74
+ if : ${{ github.event.inputs.version != 'none' }}
75
+ run : |
76
+ npm version ${{ github.event.inputs.version }}
77
+
57
78
# Replace GitHub links to individual packages with npm links:
58
79
- name : ' Replace all GitHub links to individual packages with npm links'
59
80
run : |
You can’t perform that action at this time.
0 commit comments