From 3fdda01301158833d5c76b2c3e4460719629e6e3 Mon Sep 17 00:00:00 2001 From: Appu <77108939+appujet@users.noreply.github.com> Date: Tue, 8 Oct 2024 11:49:26 +0530 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8889143..94cd839 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,18 +16,27 @@ jobs: # Checkout the repository code - uses: actions/checkout@v2 + # Setup Node.js with pnpm caching + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + # Install the latest version of Vercel CLI - name: Install Vercel CLI run: npm install --global vercel@latest # Pull Vercel environment information for production - name: Pull Vercel Environment Information + working-directory: apps/web run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} # Build the project - name: Build Project Artifacts + working-directory: apps/web run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} # Deploy the project using the prebuilt artifacts - name: Deploy Project Artifacts to Vercel + working-directory: apps/web run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}