Skip to content

feat: plumb through navigation v1 #782

feat: plumb through navigation v1

feat: plumb through navigation v1 #782

name: Preview @fern-ui/dashboard (dev)
env:
# TODO: move to env vars in vercel
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
VENUS_ORIGIN: ${{ secrets.VENUS_ORIGIN }}
VENUS_AUDIENCE: ${{ secrets.VENUS_AUDIENCE }}
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.head.ref || github.ref_name || github.ref }}
cancel-in-progress: true
jobs:
ignore:
runs-on: ubuntu-latest
outputs:
continue: ${{ steps.ignore.outputs.continue }}
steps:
- uses: actions/checkout@v4
- name: Ignore unchanged files
id: ignore
uses: ./.github/actions/turbo-ignore
with:
token: ${{ secrets.VERCEL_TOKEN }}
project: "dashboard-dev.buildwithfern.com"
package: "@fern-ui/dashboard"
environment: "preview"
branch: ${{ github.event.pull_request.head.ref || github.ref_name || github.ref }}
deploy:
needs: ignore
if: needs.ignore.outputs.continue == 1
runs-on: ubuntu-latest
environment:
name: Preview - dashboard-dev.buildwithfern.com
url: ${{ steps.deploy.outputs.deployment_url }}
steps:
# set the ref to a specific branch so that the deployment is scoped to that branch (instead of a headless ref)
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref || github.ref_name || github.ref }}
- uses: ./.github/actions/install
- name: Build & Deploy to Vercel
id: deploy
run: |
pnpm vercel-scripts deploy dashboard-dev.buildwithfern.com --token=${{ secrets.VERCEL_TOKEN }}
echo "deployment_url=$(cat deployment-url.txt)" >> $GITHUB_OUTPUT