Skip to content

Commit

Permalink
docs(vercel): add missing steps required on the action
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasaarcoverde committed Nov 1, 2024
1 parent 805d38d commit fa5a52e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,34 @@ on:
push:
branches-ignore:
- main

jobs:
Deploy-Preview:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.VTEX_GITHUB_BOT_TOKEN }}
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.4.0

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Pull Vercel Environment Information
run: npx vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}

Expand Down

0 comments on commit fa5a52e

Please sign in to comment.