Fix npm ci with latest node.js version
[poolifier.git] / .github / workflows / ci.yml
index 8ba2378964e745447875be86e04a47d74a9347db..fccb643e91413e1632b00f1277086be5a09c9dc3 100644 (file)
@@ -18,7 +18,7 @@ jobs:
 
     strategy:
       matrix:
-        node: ['14.x', '16.x', '17.x']
+        node: ['14.x', '16.x', '18.x']
 
     steps:
       - name: Checkout
@@ -32,6 +32,9 @@ jobs:
           node-version: ${{ matrix.node }}
 
       - name: Install
+        if: matrix.node == '18.x'
+        run: npm ci --legacy-peer-deps
+        if: matrix.node != '18.x'
         run: npm ci
 
       - name: Build