Skip to content

Merge pull request #43 from DVGY/feature/upgrade-react-18 #29

Merge pull request #43 from DVGY/feature/upgrade-react-18

Merge pull request #43 from DVGY/feature/upgrade-react-18 #29

name: 'vercel-tours-client-depl'
on:
push:
branches:
- master
paths:
- 'client/**'
workflow_dispatch:
jobs:
vercel:
runs-on: ubuntu-latest
name: 'Deploy Tours Client'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.x'
registry-url: https://registry.npmjs.org/
- name: 'Deploy to Vercel'
run: |
prodRun=""
if [[ ${GITHUB_REF} == "refs/heads/master" ]]; then
prodRun="--prod"
fi
npx vercel --token ${VERCEL_TOKEN} $prodRun
env:
VERCEL_TOKEN: ${{ secrets.TOURS_APP_VERCEL_TOKEN }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}