Fix npm ci with latest node.js version
[poolifier.git] / .github / workflows / ci.yml
index 044210ac2330587481f5bfd3132bbe9e2d8a1a75..fccb643e91413e1632b00f1277086be5a09c9dc3 100644 (file)
@@ -18,7 +18,7 @@ jobs:
 
     strategy:
       matrix:
-        node: ['12.x', '14.x', '16.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