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 3
3
4
4
name : Node.js Package
5
5
6
- on :
7
- release :
8
- types : [created]
6
+ on : push
9
7
10
8
jobs :
11
9
build :
15
13
- uses : actions/setup-node@v1
16
14
with :
17
15
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
18
22
- run : npm ci
19
- - run : npm test
20
23
21
24
publish-npm :
22
25
needs : build
31
34
- run : npm publish
32
35
env :
33
36
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