This repository has been archived by the owner on May 25, 2024. It is now read-only.
fix: provide explicit error message for invalid token #30
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: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Deploy-Preview: | |
runs-on: ubuntu-latest | |
environment: | |
name: preview | |
url: https://grammy-tools-roziscoding.vercel.app | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Pull Vercel Environment Information | |
run: npx vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Build Project Artifacts | |
run: npx vercel build --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Deploy Project Artifacts to Vercel | |
run: npx vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} |