Skip to content

Workflow file for this run

name: Deploy Sandbox
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
if: startsWith(github.event.release.tag_name, 'sandbox@')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Deploy to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_SANDBOX_PROJECT_ID }}
run: |
corepack enable
corepack prepare pnpm@10 --activate
pnpm install --frozen-lockfile --filter @native-ui-org/sandbox... --ignore-scripts
pnpm --filter @native-ui-org/primitives build
npx vercel pull --yes --environment=production --token=$VERCEL_TOKEN --cwd=apps/sandbox
npx vercel build --prod --token=$VERCEL_TOKEN --cwd=apps/sandbox
npx vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN --cwd=apps/sandbox