Skip to content

Updated the README

Updated the README #16

name: Vercel Deployment
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: yarn install
- run: yarn run test
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
RATE_LIMIT_MINUTES: ${{ secrets.RATE_LIMIT_MINUTES }}
RATE_LIMIT_MAX_REQUEST: ${{ secrets.RATE_LIMIT_MAX_REQUEST }}
CACHE_STORAGE_SECONDS: ${{ secrets.CACHE_STORAGE_SECONDS }}
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-args: '--prod' #Optional
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
working-directory: .