From d13ae3519b97dc91b2ed621dd5bf2181e7909b7b Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Tue, 21 Nov 2023 18:37:43 +0530 Subject: [PATCH] Install PNPM before vercel --- .github/workflows/preview.yaml | 9 ++++++++- .github/workflows/production.yaml | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 6a32273f..421b0423 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -28,8 +28,15 @@ jobs: - name: Move Data to Leaderboard run: mv ./data-repo/data ./data + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + version: 6 + run_install: false + - name: Install Vercel CLI - run: npm install --global vercel@latest + run: pnpm add --global vercel@latest - name: Pull Vercel Environment Information run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index 0a1d5f5e..95323d7e 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -26,8 +26,15 @@ jobs: - name: Move Data to Leaderboard run: mv ./data-repo/data ./data + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + version: 6 + run_install: false + - name: Install Vercel CLI - run: npm install --global vercel@latest + run: pnpm add --global vercel@latest - name: Pull Vercel Environment Information run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}