File tree Expand file tree Collapse file tree 1 file changed +12
-22
lines changed Expand file tree Collapse file tree 1 file changed +12
-22
lines changed Original file line number Diff line number Diff line change 1- name : npm-publish
2- on :
3- push :
4- branches :
5- - master # Change this to your default branch
1+ on : push
2+
63jobs :
7- npm-publish :
8- name : npm-publish
4+ publish :
95 runs-on : ubuntu-latest
106 steps :
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 : 10.0.0
17- - name : Publish if version has been updated
18- uses : pascalgn/npm-publish-action@4f4bf159e299f65d21cd1cbd96fc5d53228036df
19- with : # All of theses inputs are optional
20- tag_name : " v%s"
21- tag_message : " v%s"
22- commit_pattern : " ^Release (\\ S+)"
23- env : # More info about the environment variables in the README
24- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
25- NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
7+ - uses : actions/checkout@v1
8+ - uses : actions/setup-node@v1
9+ with :
10+ node-version : 10
11+ - run : npm install
12+ - run : npm test
13+ - uses : JS-DevTools/npm-publish@v1
14+ with :
15+ token : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments