File tree Expand file tree Collapse file tree 1 file changed +7
-18
lines changed Expand file tree Collapse file tree 1 file changed +7
-18
lines changed Original file line number Diff line number Diff line change 33
44name : Node.js Package
55
6- on :
7- release :
8- types : [created]
6+ on : push
97
108jobs :
119 build :
1513 - uses : actions/setup-node@v1
1614 with :
1715 node-version : 12
16+ - name : Set Git Environment and Update package number
17+ run : |
18+ git config --global user.name 'GIT Package Updater'
19+ git config --global user.email 'razorRun@users.noreply.github.com'
20+ npm version patch
21+ git push
1822 - run : npm ci
19- - run : npm test
2023
2124 publish-npm :
2225 needs : build
3134 - run : npm publish
3235 env :
3336 NODE_AUTH_TOKEN : ${{secrets.npm_token}}
34-
35- publish-gpr :
36- needs : build
37- runs-on : ubuntu-latest
38- steps :
39- - uses : actions/checkout@v2
40- - uses : actions/setup-node@v1
41- with :
42- node-version : 12
43- registry-url : https://npm.pkg.github.com/
44- - run : npm ci
45- - run : npm publish
46- env :
47- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments