Skip to content

Merge pull request #45 from DVGY/feature/fix-lock-file #31

Merge pull request #45 from DVGY/feature/fix-lock-file

Merge pull request #45 from DVGY/feature/fix-lock-file #31

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 }}