Skip to content

Feat/jwt to session based auth (#947) #107

Feat/jwt to session based auth (#947)

Feat/jwt to session based auth (#947) #107

name: Deploy nodejs backend app
on:
workflow_dispatch:
push:
branches:
- stage
- prod
paths:
- "packages/app/**"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 2
environment: ${{ github.ref_name == 'stage' && 'STAGE' || 'PROD' }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.BACKEND_VERCEL_PROJECT_ID }}
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 10
- name: Install Vercel CLI
run: pnpm add -g vercel@latest
- name: Pull vercel environment information
run: vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}