This repository has been archived by the owner on Nov 24, 2024. It is now read-only.
Section question done #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vercel preview deployment | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 23 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install | |
- name: Pull Vercel environment information | |
run: yarn :frontend vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Build project artifacts | |
run: yarn :frontend vercel build --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Deploy project artifacts to Vercel | |
run: yarn :frontend vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} |