Parcourir la source

ci: install and use pnpm

Sv443 il y a 10 mois
Parent
commit
9a3b87b4f7
2 fichiers modifiés avec 12 ajouts et 4 suppressions
  1. 6 2
      .github/workflows/build.yml
  2. 6 2
      .github/workflows/lint.yml

+ 6 - 2
.github/workflows/build.yml

@@ -27,8 +27,12 @@ jobs:
         uses: actions/setup-node@v3
         with:
           node-version: ${{ matrix.node-version }}
-      - name: Install dependencies # runs the npm ci command to install from package-lock.json
-        run: npm ci
+      - uses: pnpm/action-setup@v4
+        with:
+          version: 9
+          run_install: |
+            - recursive: true
+              args: [--frozen-lockfile, --strict-peer-dependencies]
       - name: Build all for production
         run: npm run build-prod
       - name: Upload artifacts

+ 6 - 2
.github/workflows/lint.yml

@@ -25,7 +25,11 @@ jobs:
         uses: actions/setup-node@v3
         with:
           node-version: ${{ matrix.node-version }}
-      - name: Install dependencies # runs the npm ci command to install from package-lock.json
-        run: npm ci
+      - uses: pnpm/action-setup@v4
+        with:
+          version: 9
+          run_install: |
+            - recursive: true
+              args: [--frozen-lockfile, --strict-peer-dependencies]
       - name: Build with tsc & lint
         run: npm run lint