Skip to content

fix: hide prev button (#1473) #130

fix: hide prev button (#1473)

fix: hide prev button (#1473) #130

name: Fern Dashboard - Vercel Production Deployment
env:
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
VENUS_ORIGIN: ${{ secrets.VENUS_ORIGIN }}
VENUS_AUDIENCE: ${{ secrets.VENUS_AUDIENCE }}
on:
push:
tags:
- "**"
# Cancel previous workflows on previous push so we don't have deploys overwriting eachother here
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref_type == 'tag' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/dashboard@')
permissions: write-all
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.4.0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Build & Deploy to Vercel
working-directory: packages/ui/fern-dashboard
run: |
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
VERSION="$(scripts/git-version.sh)" ENABLE_SOURCE_MAPS=true vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}