Skip to content

fix: change backend files into typescript codebase (#29) #16

fix: change backend files into typescript codebase (#29)

fix: change backend files into typescript codebase (#29) #16

Workflow file for this run

name: Deploy Server Production
on:
push:
paths:
- "server/**" # Trigger when any file in the 'server' folder is changed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # Ensure you're using the appropriate Node.js version
- name: Install Vercel CLI globally
run: npm install -g vercel
- name: Deploy to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: |
cd server # Navigate to the server directory
vercel --prod --token $VERCEL_TOKEN --yes