Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ jobs:
filters: |
backend:
- 'backend/**'
- '.github/workflows/**'
frontend:
- 'frontend/**'
- '.github/workflows/**'

# --------------------------------------------------------------------------
# CI: backend (always runs — safe to mark as a required status check)
Expand Down Expand Up @@ -163,11 +165,18 @@ jobs:
NEXT_PUBLIC_API_BASE_URL: ${{ secrets.NEXT_PUBLIC_API_BASE_URL }}
steps:
- uses: actions/checkout@v5
# Wrangler 4 requires Node 22+ at deploy time. (ci-frontend still uses
# Node 20 — that's only for typecheck/build, not the wrangler invocation.)
- uses: actions/setup-node@v5
with:
node-version: 20
node-version: 22
cache: npm
cache-dependency-path: frontend/package-lock.json
# OpenNext detects frontend/bun.lock and tries `bun run build`; install
# bun so that path works. (We still use npm ci for our own install.)
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: npm ci
- name: Build & deploy (OpenNext + Wrangler)
run: npm run deploy:${{ github.ref_name == 'main' && 'production' || 'staging' }}
3 changes: 3 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "mike-backend",
"version": "1.0.0",
"private": true,
"engines": {
"node": ">=20"
},
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc",
Expand Down
Loading