File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 12
12
required : true
13
13
default : false
14
14
description : Dry run, will not push branches or upload the artifacts.
15
+ pre_release :
16
+ type : boolean
17
+ required : true
18
+ default : false
19
+ description : If true, push pre-release tag.
15
20
skip_tag :
16
21
type : boolean
17
22
required : true
@@ -35,10 +40,15 @@ jobs:
35
40
- name : Package
36
41
run : ./build-package.sh
37
42
- name : Upload
38
- if : ${{ github.event.inputs.dry_run != 'true' }}
43
+ if : ${{ github.event.inputs.dry_run != 'true' && github.event.inputs.pre_release != 'true' }}
39
44
run : npm publish
40
45
env :
41
46
NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
47
+ - name : Upload pre-release
48
+ if : ${{ github.event.inputs.dry_run != 'true' && github.event.inputs.pre_release == 'true' }}
49
+ run : npm publish --tag next
50
+ env :
51
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
42
52
- name : Tag release
43
53
if : ${{ github.event.inputs.skip_tag != 'true' }}
44
54
run : |
You can’t perform that action at this time.
0 commit comments