Skip to content

Commit dfdc88d

Browse files
committed
Only use --legacy-peer-deps for node 18.x and higher in CI
1 parent aaa999a commit dfdc88d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/main.yml

+7
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,15 @@ jobs:
2020
with:
2121
node-version: ${{ matrix.node }}
2222

23+
- name: Download deps without --legacy-peer-deps
24+
uses: bahmutov/npm-install@v1
25+
if: matrix.node == '16.x'
26+
with:
27+
install-command: npm ci
28+
2329
- name: Download deps
2430
uses: bahmutov/npm-install@v1
31+
if: matrix.node != '16.x'
2532
with:
2633
install-command: npm ci --legacy-peer-deps
2734

0 commit comments

Comments
 (0)