File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1- name : Publish NPM package
1+ name : Release
22
33on :
44 push :
5- branches : ['master']
5+ branches :
6+ - master
67
78jobs :
89 build :
9- name : publish the package to NPM
10+ name : Release
1011 runs-on : ubuntu-latest
1112
1213 strategy :
@@ -15,12 +16,15 @@ jobs:
1516
1617 steps :
1718 - uses : actions/checkout@v2
19+ with :
20+ fetch-depth : 0
1821 - name : Use Node.js ${{ matrix.node-version }}
1922 uses : actions/setup-node@v1
2023 with :
2124 node-version : ${{ matrix.node-version }}
2225 - run : npm install
23- - uses : JS-DevTools/npm-publish@v1
24- with :
25- token : ${{ secrets.NPM_TOKEN }}
26- access : ' public'
26+ - name : Release
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
30+ run : npx semantic-release
You can’t perform that action at this time.
0 commit comments