File tree Expand file tree Collapse file tree 2 files changed +11
-21
lines changed Expand file tree Collapse file tree 2 files changed +11
-21
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,31 +15,34 @@ jobs:
15
15
- run : npm ci
16
16
- run : npm test
17
17
18
- publish-npm :
18
+ publish-pacakges :
19
19
needs : build
20
20
runs-on : ubuntu-latest
21
21
steps :
22
+
23
+ # checkout the repo
22
24
- uses : actions/checkout@v2
25
+
26
+ # update version
27
+ - uses : actions/setup-node@v1
28
+ - run : npm version ${{GITHUB_REF}}
29
+ - run : npm ci
30
+
31
+ # publish to NPMJS
23
32
- uses : actions/setup-node@v1
24
33
with :
25
34
node-version : 12
26
35
registry-url : https://registry.npmjs.org/
27
- - run : npm ci
28
36
- run : npm publish
29
37
env :
30
38
NODE_AUTH_TOKEN : ${{secrets.npm_token}}
31
39
32
- publish-gpr :
33
- needs : build
34
- runs-on : ubuntu-latest
35
- steps :
36
- - uses : actions/checkout@v2
40
+ # publish to GitHub Pacakge Registry
37
41
- uses : actions/setup-node@v1
38
42
with :
39
43
node-version : 12
40
44
registry-url : https://npm.pkg.github.com/
41
45
scope : ' @validide'
42
- - run : npm ci
43
46
- run : npm publish
44
47
env :
45
48
NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments