Skip to content

chore: add commands and docs for local running #211

chore: add commands and docs for local running

chore: add commands and docs for local running #211

Workflow file for this run

name: Deploy to Production
on:
push:
branches:
- main
paths:
- apps/web/**
- .github/workflows/production.yaml
workflow_dispatch:
jobs:
Deploy-Production:
runs-on: ubuntu-latest
environment:
name: production
url: ${{ steps.deploy.outputs.url }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v5
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build web app
run: pnpm --filter web build
env:
NODE_ENV: production
- name: Deploy production Worker
id: deploy
run: |
set -euo pipefail
DEPLOY_LOG="$(mktemp)"
pnpm --filter web deploy:prod 2>&1 | tee "${DEPLOY_LOG}"
URL="$(grep -Eo 'https://[^ ]+\\.workers\\.dev' "${DEPLOY_LOG}" | head -n 1 || true)"
if [ -n "${URL}" ]; then
echo "url=${URL}" >> "${GITHUB_OUTPUT}"
fi
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}