Skip to content

hardcoded projectid #132

hardcoded projectid

hardcoded projectid #132

Workflow file for this run

name: Deploy examples to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
BRANCH_NAME_RAW: ${{ github.head_ref || github.ref_name }}
on:
push:
branches:
- main
- publishing_packages
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Deploy React SDK example to Vercel
run: |
cd examples/react-sdk
npm install
npm run build
url="$(npx vercel deploy -t ${{ secrets.VERCEL_TOKEN }})"
npx vercel alias -S corbado -t ${{ secrets.VERCEL_TOKEN }} "$url" react-sdk.test.korbado.com
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_REACT_SDK }}
- name: Deploy React example to Vercel
run: |
cd examples/react
npm install
npm run build
url="$(npx vercel deploy -t ${{ secrets.VERCEL_TOKEN }})"
npx vercel alias -S corbado -t ${{ secrets.VERCEL_TOKEN }} "$url" react.test.korbado.com
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_REACT }}