File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 - name : Setup Node
2828 uses : actions/setup-node@v3
2929 with :
30- node-version : 14
30+ node-version : 18
3131 - name : Cache Node Modules
3232 id : cache-node-modules
3333 uses : actions/cache@v3
Original file line number Diff line number Diff line change 9494 key : node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
9595 - name : Install dependencies
9696 if : steps.cache-node-modules.outputs.cache-hit != 'true'
97- run : npm ci --ignore-scripts
97+ run : npm i -g npm@8 && npm ci --ignore-scripts
9898 - name : Run tests
9999 run : npm run ci:test:only
100100 env :
@@ -120,6 +120,9 @@ jobs:
120120 with :
121121 path : node_modules
122122 key : node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
123+ - name : Update npm
124+ if : (matrix.node == '14.18.0') && (steps.cache-node-modules.outputs.cache-hit != 'true')
125+ run : npm i -g npm@8
123126 - name : Install dependencies
124127 if : steps.cache-node-modules.outputs.cache-hit != 'true'
125128 run : npm ci --ignore-scripts
@@ -148,6 +151,9 @@ jobs:
148151 with :
149152 path : node_modules
150153 key : node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
154+ - name : Update npm
155+ if : (matrix.node == '14.18.0') && (steps.cache-node-modules.outputs.cache-hit != 'true')
156+ run : npm i -g npm@8
151157 - name : Install dependencies
152158 if : steps.cache-node-modules.outputs.cache-hit != 'true'
153159 run : npm ci --ignore-scripts
You can’t perform that action at this time.
0 commit comments