File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : npm-publish
1
2
on :
2
3
push :
3
- branches : main
4
-
4
+ branches :
5
+ - master # Change this to your default branch
5
6
jobs :
6
- publish :
7
+ npm-publish :
8
+ name : npm-publish
7
9
runs-on : ubuntu-latest
8
10
steps :
9
- - uses : actions/checkout@v4
10
- - uses : actions/setup-node@v3
11
+ - name : Checkout repository
12
+ uses : actions/checkout@master
13
+ - name : Set up Node.js
14
+ uses : actions/setup-node@master
11
15
with :
12
- node-version : " 20"
13
- - uses : JS-DevTools/npm-publish@v3
14
- with :
15
- token : ${{ secrets.NPM_TOKEN }}
16
+ node-version : 10.0.0
17
+ - name : Publish if version has been updated
18
+ uses : pascalgn/npm-publish-action@51fdb4531e99aac1873764ef7271af448dc42ab4
19
+ env :
20
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
+ NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments