@@ -36,12 +36,27 @@ jobs:
3636 - uses : actions/checkout@v2
3737
3838 - name : Use Node.js
39- uses : actions/setup-node@v1
39+ uses : actions/setup-node@v2
4040 with :
41- node-version : ' 14.x'
41+ node-version : ' 14'
42+ check-latest : true
43+
44+ - name : Cache node modules
45+ uses : actions/cache@v2
46+ env :
47+ cache-name : cache-node-modules
48+ with :
49+ path : |
50+ ~/.npm
51+ node_modules
52+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
53+ restore-keys : |
54+ ${{ runner.os }}-build-${{ env.cache-name }}-
55+ ${{ runner.os }}-build-
56+ ${{ runner.os }}-
4257
4358 - name : Install deps
44- run : npm install
59+ run : npm install --audit=false
4560
4661 - name : Lint ESLint
4762 run : npm run lint:eslint
@@ -58,12 +73,27 @@ jobs:
5873 - uses : actions/checkout@v2
5974
6075 - name : Use Node.js
61- uses : actions/setup-node@v1
76+ uses : actions/setup-node@v2
77+ with :
78+ node-version : ' 14'
79+ check-latest : true
80+
81+ - name : Cache node modules
82+ uses : actions/cache@v2
83+ env :
84+ cache-name : cache-node-modules
6285 with :
63- node-version : ' 14.x'
86+ path : |
87+ ~/.npm
88+ node_modules
89+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
90+ restore-keys : |
91+ ${{ runner.os }}-build-${{ env.cache-name }}-
92+ ${{ runner.os }}-build-
93+ ${{ runner.os }}-
6494
6595 - name : Install deps
66- run : npm install
96+ run : npm install --audit=false
6797
6898 - name : Build schema & docs
6999 run : npm run build
@@ -86,12 +116,27 @@ jobs:
86116 - uses : actions/checkout@v2
87117
88118 - name : Use Node.js
89- uses : actions/setup-node@v1
119+ uses : actions/setup-node@v2
90120 with :
91- node-version : ' 14.x'
121+ node-version : ' 14'
122+ check-latest : true
123+
124+ - name : Cache node modules
125+ uses : actions/cache@v2
126+ env :
127+ cache-name : cache-node-modules
128+ with :
129+ path : |
130+ ~/.npm
131+ node_modules
132+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
133+ restore-keys : |
134+ ${{ runner.os }}-build-${{ env.cache-name }}-
135+ ${{ runner.os }}-build-
136+ ${{ runner.os }}-
92137
93138 - name : Install deps
94- run : npm install
139+ run : npm install --audit=false
95140
96141 - name : Setup env vars
97142 run : echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV
@@ -123,12 +168,27 @@ jobs:
123168 - uses : actions/checkout@v2
124169
125170 - name : Use Node.js
126- uses : actions/setup-node@v1
171+ uses : actions/setup-node@v2
172+ with :
173+ node-version : ' 14'
174+ check-latest : true
175+
176+ - name : Cache node modules
177+ uses : actions/cache@v2
178+ env :
179+ cache-name : cache-node-modules
127180 with :
128- node-version : ' 14.x'
181+ path : |
182+ ~/.npm
183+ node_modules
184+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
185+ restore-keys : |
186+ ${{ runner.os }}-build-${{ env.cache-name }}-
187+ ${{ runner.os }}-build-
188+ ${{ runner.os }}-
129189
130190 - name : Install deps
131- run : npm install
191+ run : npm install --audit=false
132192
133193 - name : Setup env vars
134194 run : echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV
@@ -160,12 +220,27 @@ jobs:
160220 - uses : actions/checkout@v2
161221
162222 - name : Use Node.js
163- uses : actions/setup-node@v1
223+ uses : actions/setup-node@v2
224+ with :
225+ node-version : ' 14'
226+ check-latest : true
227+
228+ - name : Cache node modules
229+ uses : actions/cache@v2
230+ env :
231+ cache-name : cache-node-modules
164232 with :
165- node-version : ' 14.x'
233+ path : |
234+ ~/.npm
235+ node_modules
236+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
237+ restore-keys : |
238+ ${{ runner.os }}-build-${{ env.cache-name }}-
239+ ${{ runner.os }}-build-
240+ ${{ runner.os }}-
166241
167242 - name : Install deps
168- run : npm install
243+ run : npm install --audit=false
169244
170245 - name : Setup env vars
171246 run : echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV
0 commit comments