Skip to content

fixs:error

fixs:error #37

name: Client Deployment
on:
push:
branches:
- main
paths:
- "client/**"
defaults:
run:
working-directory: ./client
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install dependencies
run: |
npm install
- name: Lint
run: |
npm run lint
- name: Build App
run: |
npm run build
- name: "Deploy to vercel"
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_ACCESS_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
vercel-args: "--prod"