Skip to content

add vercel serverless #2

add vercel serverless

add vercel serverless #2

Workflow file for this run

name: Deploy to Vercel
on:
push:
branches:
- main # Adjust if your default branch is different
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Deploy to Vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-args: '--prod'
working-directory: ./