File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ # https://github.com/marketplace/actions/publish-to-npm
2
+
3
+ name : npm-publish
4
+ on :
5
+ push :
6
+ branches :
7
+ - master # Change this to your default branch
8
+ jobs :
9
+ npm-publish :
10
+ name : npm-publish
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@master
15
+ - name : Set up Node.js
16
+ uses : actions/setup-node@master
17
+ with :
18
+ node-version : 10.0.0
19
+ - name : Publish if version has been updated
20
+ uses : pascalgn/npm-publish-action@06e0830ea83eea10ed4a62654eeaedafb8bf50fc
21
+ with : # All of theses inputs are optional
22
+ commit_pattern : " ^Release (\\ S+)"
23
+ workspace : " ."
24
+ env : # More info about the environment variables in the README
25
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
26
+ NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
You can’t perform that action at this time.
0 commit comments