File tree 1 file changed +17
-10
lines changed
1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,20 @@ jobs:
13
13
- name : Set up Node.js
14
14
uses : actions/setup-node@master
15
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 : " %s"
21
- tag_message : " %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
16
+ node-version : 14.0.0
17
+ - id : publish
18
+ uses : JS-DevTools/npm-publish@v1
19
+ with :
20
+ token : ${{ secrets.NPM_AUTH_TOKEN }}
21
+ - name : Create Release
22
+ if : steps.publish.outputs.type != 'none'
23
+ id : create_release
24
+ uses : actions/create-release@v1
25
+ env :
26
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
+ with :
28
+ tag_name : ${{ steps.publish.outputs.version }}
29
+ release_name : Release ${{ steps.publish.outputs.version }}
30
+ body : ${{ steps.publish.outputs.version }}
31
+ draft : false
32
+ prerelease : false
You can’t perform that action at this time.
0 commit comments