-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 888 Bytes
/
deploy.yml
File metadata and controls
44 lines (35 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build and Deploy to Railway
on:
push:
branches:
- main
- railway-version
- access-review
pull_request:
branches:
- main
- access-review
env:
NODE_VERSION: '20.x'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Generate Prisma Client
run: npm run db:generate
- name: Build TypeScript
run: npm run build
- name: Run tests
run: npm test
continue-on-error: true
# Railway deploys automatically via GitHub integration
# No manual deploy step needed - just connect your repo in Railway dashboard