File tree Expand file tree Collapse file tree 2 files changed +14
-27
lines changed
Expand file tree Collapse file tree 2 files changed +14
-27
lines changed Original file line number Diff line number Diff line change @@ -13,29 +13,16 @@ jobs:
1313 runs-on : ubuntu-latest
1414
1515 steps :
16- - name : Checkout Git
17- uses : actions/checkout@v2
18-
19- - name : Use Node.js 14.x
20- uses : actions/setup-node@v2
16+ - uses : actions/checkout@v3
17+ - uses : actions/setup-node@v3
2118 with :
22- node-version : 14.x
19+ node-version : 18
20+ cache : ' npm' # caching global packages data
2321
24- # This caches all of your node_modules folders throughout your repository,
25- # and busts the cache every time a package-lock.json file changes.
26- # see https://dev.to/mpocock1/how-to-cache-nodemodules-in-github-actions-with-yarn-24eh
27- - name : Cache node modules
28- uses : actions/cache@v2
29- with :
30- path : ' **/node_modules'
31- key : ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
32-
33- - run : npm install
34-
35- - name : Build API
36- run : npm run grunt
22+ - run : npm ci --legacy-peer-deps
23+ - run : npm run grunt
3724
38- - name : Deploy API
25+ - name : Deploy API to book-monkey5/api5-build (main branch)
3926 if : ${{ github.event_name == 'push' }}
4027 env :
4128 GH_TOKEN : ${{ secrets.GH_TOKEN }}
Original file line number Diff line number Diff line change 66 "start" : " node start.js"
77 },
88 "engines" : {
9- "node" : " 10 .x"
9+ "node" : " 18 .x"
1010 },
1111 "dependencies" : {
1212 "body-parser" : " ^1.19.0" ,
13- "cookie-parser" : " ^1.4.4 " ,
13+ "cookie-parser" : " ^1.4.5 " ,
1414 "cors" : " ^2.8.5" ,
1515 "date-fns" : " ^2.23.0" ,
1616 "errorhandler" : " ^1.5.1" ,
1717 "express" : " ^4.17.1" ,
1818 "express-graphql" : " ^0.9.0" ,
19- "graphql" : " ^14.4.2 " ,
20- "graphql-tools" : " ^4 .0.5 " ,
19+ "graphql" : " ^15.0.0 " ,
20+ "graphql-tools" : " ^5 .0.0 " ,
2121 "lodash" : " ^4.17.15" ,
2222 "method-override" : " ^3.0.0" ,
23- "morgan" : " ^1.9.1 " ,
23+ "morgan" : " ^1.10.0 " ,
2424 "pug" : " ^2.0.4" ,
25- "swagger-ui-express" : " 4.0.7 " ,
26- "web-push" : " ^3.3.5 "
25+ "swagger-ui-express" : " 4.1.4 " ,
26+ "web-push" : " ^3.4.3 "
2727 }
2828}
You can’t perform that action at this time.
0 commit comments