Skip to content

Commit

Permalink
Fix CI npm versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Aug 13, 2023
1 parent 017678d commit c17dfc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/repl-artefacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v3
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts
run: npm i -g npm@8 && npm ci --ignore-scripts
- name: Run tests
run: npm run ci:test:only
env:
Expand All @@ -120,6 +120,9 @@ jobs:
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Update npm
if: (matrix.node == '14.18.0') && (steps.cache-node-modules.outputs.cache-hit != 'true')
run: npm i -g npm@8
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts
Expand Down Expand Up @@ -148,6 +151,9 @@ jobs:
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Update npm
if: (matrix.node == '14.18.0') && (steps.cache-node-modules.outputs.cache-hit != 'true')
run: npm i -g npm@8
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci --ignore-scripts
Expand Down

0 comments on commit c17dfc5

Please sign in to comment.