From bea25342cdf89ffd317c5370f38aafddaf9666a4 Mon Sep 17 00:00:00 2001 From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com> Date: Mon, 31 Jul 2023 13:01:46 +0300 Subject: [PATCH] Use PNPM --- .github/workflows/codeforafrica-review-app.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeforafrica-review-app.yml b/.github/workflows/codeforafrica-review-app.yml index a941cab59..a985fea02 100644 --- a/.github/workflows/codeforafrica-review-app.yml +++ b/.github/workflows/codeforafrica-review-app.yml @@ -95,11 +95,18 @@ jobs: with: node-version: ${{ matrix.node-version }} + - name: Install pnpm + uses: pnpm/action-setup@v2 + id: pnpm-install + with: + version: 8 + run_install: false + - name: Drop cloned DB run: | + pnpm install cd apps/codeforafrica - npm install - npm run drop-db "${{ secrets.CODEFORAFRICA_MONGO_URL }}/${{ secrets.CODEFORAFRICA_MONGO_DB_NAME }}-${{github.event.pull_request.number}}" + pnpm drop-db "${{ secrets.CODEFORAFRICA_MONGO_URL }}/${{ secrets.CODEFORAFRICA_MONGO_DB_NAME }}-${{github.event.pull_request.number}}" destroy_review_app: runs-on: ubuntu-latest