File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Create version
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ versionType :
7
+ description : Version type
8
+ required : true
9
+ default : ' patch'
10
+ type : choice
11
+ options :
12
+ - patch
13
+ - minor
14
+ - major
15
+ - premajor
16
+ - preminor
17
+ - prepatch
18
+ - prerelease
19
+
20
+ jobs :
21
+ create-version :
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - uses : actions/checkout@v3
25
+ with :
26
+ ssh-key : ${{ secrets.ADMIN_SSH_KEY }}
27
+ - uses : actions/setup-node@v1
28
+ with :
29
+ node-version : 16
30
+ - run : |
31
+ git config user.name rescriptbr-admin
32
+ git config user.email [email protected]
33
+
34
+ - name : Generate new version ${{ github.event.inputs.versionType }}
35
+ run : |
36
+ yarn version --${{ github.event.inputs.versionType }}
37
+
38
+ - name : Push the tags
39
+ run : git push origin main --tags
You can’t perform that action at this time.
0 commit comments