File tree 3 files changed +64
-101
lines changed
3 files changed +64
-101
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Node.js Package
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ - Release
8
+ push :
9
+ branches :
10
+ - master
11
+ - Release
12
+ - refs/tags/*
13
+ tags :
14
+ - ' *'
15
+
16
+ jobs :
17
+ build :
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v1
21
+ - uses : actions/setup-node@v1
22
+ with :
23
+ node-version : 10
24
+ - run : yarn install
25
+ - run : yarn lint
26
+ - run : yarn build
27
+ - run : yarn test
28
+
29
+ publish-npm :
30
+ needs : build
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v1
34
+ if : startsWith(github.ref, 'refs/tags')
35
+ - uses : actions/setup-node@v1
36
+ if : startsWith(github.ref, 'refs/tags')
37
+ with :
38
+ node-version : 10
39
+ registry-url : https://registry.npmjs.org/
40
+ - run : yarn install && yarn build && yarn publish
41
+ if : startsWith(github.ref, 'refs/tags')
42
+ env :
43
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_API_TOKEN }}
44
+
45
+ publish-gpr :
46
+ needs : build
47
+ runs-on : ubuntu-latest
48
+ steps :
49
+ - uses : actions/checkout@v1
50
+ if : startsWith(github.ref, 'refs/tags')
51
+ - uses : actions/setup-node@v1
52
+ if : startsWith(github.ref, 'refs/tags')
53
+ with :
54
+ node-version : 10
55
+ registry-url : https://npm.pkg.github.com/
56
+ scope : ' @hmcts'
57
+ - run : yarn install && yarn build && yarn publish
58
+ if : startsWith(github.ref, 'refs/tags')
59
+ env :
60
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " http-proxy-middleware" ,
2
+ "name" : " @hmcts/ http-proxy-middleware" ,
3
3
"version" : " 2.0.1" ,
4
4
"description" : " The one-liner node.js proxy middleware for connect, express and browser-sync" ,
5
5
"main" : " dist/index.js" ,
25
25
},
26
26
"repository" : {
27
27
"type" : " git" ,
28
- "url" : " https://github.com/chimurai /http-proxy-middleware.git"
28
+ "url" : " https://github.com/hmcts /http-proxy-middleware.git"
29
29
},
30
30
"keywords" : [
31
31
" reverse" ,
47
47
"author" : " Steven Chim" ,
48
48
"license" : " MIT" ,
49
49
"bugs" : {
50
- "url" : " https://github.com/chimurai /http-proxy-middleware/issues"
50
+ "url" : " https://github.com/hmcts /http-proxy-middleware/issues"
51
51
},
52
- "homepage" : " https://github.com/chimurai /http-proxy-middleware#readme" ,
52
+ "homepage" : " https://github.com/hmcts /http-proxy-middleware#readme" ,
53
53
"devDependencies" : {
54
54
"@commitlint/cli" : " ^12.1.4" ,
55
55
"@commitlint/config-conventional" : " ^12.1.4" ,
You can’t perform that action at this time.
0 commit comments