Skip to content

feat: update the login and profile page #36

feat: update the login and profile page

feat: update the login and profile page #36

name: Deploy Next to Vercel
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm install
working-directory: myhaki
- name: Run tests
run: npm test
working-directory: myhaki
- name: Build React app
run: npm run build
working-directory: myhaki
- name: Deploy to Vercel
if: github.ref == 'refs/heads/main'
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: npx vercel --prod --confirm --token $VERCEL_TOKEN
working-directory: myhaki