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
22on :
33 push :
44 branches :
55 - master
66jobs :
7- build :
7+ npm-publish :
8+ name : npm-publish
89 runs-on : ubuntu-latest
910 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