Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Mar 3, 2025
1 parent 54b9347 commit 3f0d143
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/previews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: deploy previews to vercel
on:
pull_request:
branches: [main]
# paths: ["apps/admin-panel/**", "apps/customer-portal/**"]

jobs:
admin-panel:
Expand All @@ -13,11 +12,13 @@ jobs:
VERCEL_PROJECT_ID: "prj_nfuHoWMSkaOEi2bOpTTwdLBvawkH"
steps:
- uses: actions/checkout@v4
- run: corepack enable
- run: npm install --global vercel@latest pnpm
- run: pnpm install
- run: rm -rf node_modules pnpm-lock.yaml && pnpm install --frozen-lockfile
- run: |
cd apps/admin-panel
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
pnpm install --frozen-lockfile
vercel build --token=${{ secrets.VERCEL_TOKEN }}
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
Expand All @@ -28,10 +29,12 @@ jobs:
VERCEL_PROJECT_ID: "prj_r4CylWukwHpyvoXOA3ZdLaCremoJ"
steps:
- uses: actions/checkout@v4
- run: corepack enable
- run: npm install --global vercel@latest pnpm
- run: pnpm install
- run: rm -rf node_modules pnpm-lock.yaml && pnpm install --frozen-lockfile
- run: |
cd apps/customer-portal
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
pnpm install --frozen-lockfile
vercel build --token=${{ secrets.VERCEL_TOKEN }}
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit 3f0d143

Please # to comment.