File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
jobs :
7
7
publish :
8
+ environment : production
8
9
runs-on : ubuntu-latest
9
10
10
11
name : Publish
@@ -16,15 +17,24 @@ jobs:
16
17
with :
17
18
node-version : 14
18
19
cache : ' yarn'
19
- registry-url : ' https://npm.pkg.github.com '
20
+ registry-url : ' https://registry.npmjs.org '
20
21
21
22
- name : Yarn Install
22
23
run : yarn install --network-concurrency 1
23
24
24
25
- name : Build
25
26
run : yarn prod
26
27
27
- - name : Publish
28
+ - name : Publish (NPM)
29
+ run : npm publish
30
+ env :
31
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
32
+
33
+ - uses : actions/setup-node@v2
34
+ with :
35
+ registry-url : ' https://npm.pkg.github.com'
36
+
37
+ - name : Publish (GPR)
28
38
run : npm publish
29
39
env :
30
40
NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 12
12
"lint" : " eslint src/" ,
13
13
"es-check" : " es-check es5 dist/*.js"
14
14
},
15
- "publishConfig" : {
16
- "registry" : " https://npm.pkg.github.com/"
17
- },
18
15
"repository" : {
19
16
"type" : " git" ,
20
17
"url" : " git://github.com/sourcetoad/retry-session.git"
You can’t perform that action at this time.
0 commit comments