Skip to content

Commit

Permalink
Install PNPM before vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Nov 21, 2023
1 parent 2a5ff90 commit d13ae35
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit d13ae35

Please sign in to comment.