File tree Expand file tree Collapse file tree 5 files changed +63
-11
lines changed Expand file tree Collapse file tree 5 files changed +63
-11
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
2
build
3
- mock-server /node_modules
4
- mock-server /build
3
+ mock-server
5
4
.idea
6
5
.vscode
Original file line number Diff line number Diff line change 34
34
with :
35
35
node-version : ${{ matrix.node-version }}
36
36
37
- - name : Install dependencies & build (mock)
38
- working-directory : ./mock-server
39
- run : npm ci
40
-
41
- - name : Install dependencies & build (proxy)
37
+ - name : Install dependencies & build
42
38
run : npm ci
43
39
44
40
- name : Test
Original file line number Diff line number Diff line change
1
+ name : Publish openapi-mock-server Node.js package
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ env :
7
+ NODE_VERSION : ' 10.x'
8
+
9
+ jobs :
10
+ publish-to-npmjs :
11
+ runs-on : ubuntu-latest
12
+ defaults :
13
+ run :
14
+ working-directory : ./mock-server
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ - name : Set up publishing to npmjs.com
18
+ uses : actions/setup-node@v3
19
+ with :
20
+ node-version : ${{ env.NODE_VERSION }}
21
+ registry-url : ' https://registry.npmjs.org'
22
+ - run : npm ci
23
+ - run : npm run compile
24
+ - run : npm publish --access=public
25
+ env :
26
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
27
+ publish-to-github-packages :
28
+ runs-on : ubuntu-latest
29
+ defaults :
30
+ run :
31
+ working-directory : ./mock-server
32
+ permissions :
33
+ contents : read
34
+ packages : write
35
+ steps :
36
+ - uses : actions/checkout@v3
37
+ - name : Set up publishing to GitHub Packages
38
+ uses : actions/setup-node@v3
39
+ with :
40
+ node-version : ${{ env.NODE_VERSION }}
41
+ registry-url : ' https://npm.pkg.github.com'
42
+ scope : ' @exxeta'
43
+ - run : npm ci
44
+ - run : npm run compile
45
+ - run : npm publish
46
+ env :
47
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " openapi-cop-mock-server" ,
2
+ "name" : " @exxeta/ openapi-cop-mock-server" ,
3
3
"version" : " 1.0.0" ,
4
- "description" : " Mock server for use together with the openapi-cop proxy server" ,
4
+ "description" : " Mock server used to test openapi-cop proxy server. " ,
5
5
"license" : " MIT" ,
6
6
"author" : " Alexis Luengas" ,
7
- "private" : true ,
7
+ "repository" : {
8
+ "type" : " git" ,
9
+ "url" : " https://github.com/EXXETA/openapi-cop.git"
10
+ },
11
+ "engines" : {
12
+ "node" : " ^10 || ^12"
13
+ },
8
14
"main" : " ./build/src/app" ,
9
15
"bin" : " ./build/src/cli.js" ,
16
+ "types" : " ./build/src/app.d.ts" ,
17
+ "files" : [
18
+ " build/"
19
+ ],
10
20
"scripts" : {
11
21
"postinstall" : " npm run compile" ,
12
22
"check" : " gts check" ,
Original file line number Diff line number Diff line change 85
85
"find-process" : " 1.4.7" ,
86
86
"gts" : " 3.1.1" ,
87
87
"mocha" : " 9.2.2" ,
88
- "openapi-cop-mock-server" : " file:./mock-server " ,
88
+ "openapi-cop-mock-server" : " 1.0.0 " ,
89
89
"typescript" : " 4.0.5"
90
90
}
91
91
}
You can’t perform that action at this time.
0 commit comments