Skip to content

Commit 9d94f2f

Browse files
authored
Merge pull request #6 from BossyT/BossyT-patch-1
Create ci.yml
2 parents ac7649d + 524450c commit 9d94f2f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

app/.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 18
16+
- run: npm ci
17+
- run: npm run lint
18+
- run: npm run build --if-present
19+
- run: npm run typecheck --if-present
20+
21+
vercel-preview:
22+
if: secrets.VERCEL_TOKEN && secrets.VERCEL_ORG_ID && secrets.VERCEL_PROJECT_ID
23+
needs: build
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: amondnet/vercel-action@v25
28+
with:
29+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
30+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
31+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
32+
vercel-args: '--prod=false'

0 commit comments

Comments
 (0)