name: Deploy Ink Example on: push: branches: - main paths: - examples/with-react-ink-web/** - packages/react-ink/** - packages/react-ink-markdown/** - packages/react-ai-sdk/** - packages/core/** - .github/workflows/ink.yaml permissions: contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: false env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_INK_PROJECT_ID }} jobs: deploy-production: name: Deploy Production runs-on: blacksmith-4vcpu-ubuntu-2404 steps: - name: Checkout code repository uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # ratchet:actions/checkout@v7 with: fetch-depth: 1 - name: Install pnpm uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # ratchet:pnpm/action-setup@v6.0.9 - name: Setup node.js uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6 with: node-version: 24 cache: "pnpm" - name: Cache turbo build setup uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # ratchet:actions/cache@v5 with: path: .turbo key: ${{ runner.os }}-turbo-${{ github.ref }}-${{ github.sha }} restore-keys: | ${{ runner.os }}-turbo-${{ github.ref }}- ${{ runner.os }}-turbo- - name: Install Vercel CLI run: npm install --global vercel@latest - name: Install dependencies run: pnpm install --frozen-lockfile - name: Pull Vercel Environment Information working-directory: examples/with-react-ink-web run: vercel pull --yes --prod --token=${{ secrets.VERCEL_TOKEN }} - name: Build Project Artifacts working-directory: examples/with-react-ink-web run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel working-directory: examples/with-react-ink-web run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}