File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 20
20
21
21
- name : Install Dependencies
22
22
run : yarn --immutable
23
+ env :
24
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
25
+ # because of .npmrc for supporting npm publish using github action
23
26
24
27
- name : Test
25
28
run : yarn test:cov
29
+ env :
30
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
31
+ # because of .npmrc for supporting npm publish using github action
26
32
27
33
- name : Upload Code Coverage
28
34
run : bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change
1
+ name : Publish Package to npmjs
2
+ on :
3
+ release :
4
+ types : [created]
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+ - uses : actions/setup-node@v2
11
+ with :
12
+ node-version : ' 16.x'
13
+ registry-url : ' https://registry.npmjs.org'
14
+ - run : yarn
15
+ - run : yarn publish
16
+ env :
17
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ //registry.npmjs.org/:_authToken = ${ NODE_AUTH_TOKEN }
2
+ registry = https://registry.npmjs.org/
3
+ always-auth = true
You can’t perform that action at this time.
0 commit comments