File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed
Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
13name : npm-publish
24on :
35 push :
810 name : npm-publish
911 runs-on : ubuntu-latest
1012 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- NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
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+ registry-url : https://registry.npmjs.org/
20+ - run : npm publish
21+ env : # More info about the environment variables in the README
22+ NODE_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