Skip to content

Commit

Permalink
Optimize preview workflow for efficiency and speed
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMillz committed Nov 7, 2024
1 parent 84636b6 commit 9f61a31
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache pnpm
- name: Cache Node Modules and pnpm Store
uses: actions/cache@v3
with:
path: ~/.pnpm-store
path: |
~/.pnpm-store
node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install pnpm
run: npm install -g pnpm
- name: Install Vercel CLI
run: npm install --global vercel@canary
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Install pnpm and Vercel CLI
run: |
npm install -g pnpm vercel@canary
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit 9f61a31

Please sign in to comment.