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 11node_modules
22build
3- mock-server /node_modules
4- mock-server /build
3+ mock-server
54.idea
65.vscode
Original file line number Diff line number Diff line change 3434 with :
3535 node-version : ${{ matrix.node-version }}
3636
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
4238 run : npm ci
4339
4440 - 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 11{
2- "name" : " openapi-cop-mock-server" ,
2+ "name" : " @exxeta/ openapi-cop-mock-server" ,
33 "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. " ,
55 "license" : " MIT" ,
66 "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+ },
814 "main" : " ./build/src/app" ,
915 "bin" : " ./build/src/cli.js" ,
16+ "types" : " ./build/src/app.d.ts" ,
17+ "files" : [
18+ " build/"
19+ ],
1020 "scripts" : {
1121 "postinstall" : " npm run compile" ,
1222 "check" : " gts check" ,
Original file line number Diff line number Diff line change 8585 "find-process" : " 1.4.7" ,
8686 "gts" : " 3.1.1" ,
8787 "mocha" : " 9.2.2" ,
88- "openapi-cop-mock-server" : " file:./mock-server " ,
88+ "openapi-cop-mock-server" : " 1.0.0 " ,
8989 "typescript" : " 4.0.5"
9090 }
9191}
You can’t perform that action at this time.
0 commit comments