Skip to content

fix: push with personal token to workaround GITHUB_TOKEN limitation #46

fix: push with personal token to workaround GITHUB_TOKEN limitation

fix: push with personal token to workaround GITHUB_TOKEN limitation #46

Workflow file for this run

name: Vercel Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
FORCE_COLOR: true
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[auto]') }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Rust target
run: |
sudo apt install musl-tools
rustup target add x86_64-unknown-linux-musl
- name: Setup PNPM
uses: pnpm/action-setup@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Pull Vercel Environment Information
run: pnpx vercel pull --environment production --yes --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: pnpx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: pnpx vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }}