Skip to content

build: 💚 update vercel config #2

build: 💚 update vercel config

build: 💚 update vercel config #2

Workflow file for this run

name: Deploy to Vercel
on:
push:
branches: [config_vercel] # Production deployment
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: yarn install
- name: Build backend
run: yarn nx build be && yarn nx build fe
- name: Install Vercel CLI
run: npm install -g vercel
- name: Pull Vercel cache
uses: actions/cache@v3
with:
path: ~/.vercel
key: ${{ runner.os }}-vercel-be-${{ hashFiles('vercel.json') }}
- name: Deploy backend with Vercel
run: vercel --prod -s tasktr-be
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }}