File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 1
- name : publish
1
+ name : npm- publish
2
2
on :
3
3
push :
4
4
branches :
5
5
- master
6
6
jobs :
7
- build :
7
+ npm-publish :
8
+ name : npm-publish
8
9
runs-on : ubuntu-latest
9
10
steps :
10
- - name : Publish to npm
11
- uses : pascalgn/npm-publish-action@1.3.3
11
+ - name : Checkout repository
12
+ uses : actions/checkout@master
13
+ - name : Set up Node.js
14
+ uses : actions/setup-node@master
15
+ with :
16
+ node-version : 12.0.0
17
+ - name : Publish if version has been updated
18
+ uses : pascalgn/npm-publish-action@06e0830ea83eea10ed4a62654eeaedafb8bf50fc
19
+ with :
20
+ tag_name : " v%s"
21
+ tag_message : " v%s"
22
+ commit_pattern : " ^Release (\\ S+)"
23
+ workspace : " ."
24
+ env :
25
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
+ NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
You can’t perform that action at this time.
0 commit comments