File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 1
- name : Publish NPM Package
1
+ name : Publish package to npm registries
2
2
3
3
on :
4
4
release :
5
- types :
6
- - created
5
+ types : [created]
7
6
8
7
jobs :
9
- build :
8
+ publish_to_npm :
10
9
runs-on : ubuntu-latest
11
10
steps :
12
11
- uses : actions/checkout@v2
13
- - uses : actions/setup-node@v2
12
+ - uses : actions/setup-node@v3
14
13
with :
15
14
node-version : ' 14.x'
16
15
registry-url : ' https://registry.npmjs.org'
17
- - run : npm install
16
+ - run : npm ci
18
17
- run : npm publish
19
18
env :
20
19
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
20
+
21
+ publish_to_github :
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - uses : actions/checkout@v2
25
+ - uses : actions/setup-node@v3
26
+ with :
27
+ node-version : ' 14.x'
28
+ registry-url : ' https://npm.pkg.github.com'
29
+ scope : ' @highmobility'
30
+ - run : npm ci
31
+ - run : npm publish
32
+ env :
33
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments