feat(cli): add non-interactive mode to clawstore init
#26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.11.0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Build all packages | |
| run: pnpm build | |
| - name: Run D1 migrations | |
| run: npx wrangler d1 migrations apply clawstore-db --remote | |
| working-directory: apps/api | |
| - name: Deploy API Worker | |
| run: npx wrangler deploy --minify | |
| working-directory: apps/api | |
| - name: Build Web with prod API URL | |
| run: VITE_API_URL=https://api.useclawstore.com/v1 pnpm build | |
| working-directory: apps/web | |
| - name: Deploy Web Worker | |
| run: npx wrangler deploy | |
| working-directory: apps/web | |
| - name: Deploy Docs | |
| run: npx wrangler pages deploy apps/docs/dist --project-name=clawstore-docs | |
| - name: Smoke test | |
| run: | | |
| sleep 5 | |
| curl -f https://api.useclawstore.com/v1/health |