Skip to content

Commit c17dfc5

Browse files
committed
Fix CI npm versions
1 parent 017678d commit c17dfc5

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/repl-artefacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
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

.github/workflows/tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
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

0 commit comments

Comments
 (0)