feat: update the login and profile page #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |