-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (34 loc) · 1.02 KB
/
deploy-playground.yml
File metadata and controls
42 lines (34 loc) · 1.02 KB
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
name: Deploy Playground
on:
push:
branches: [main]
paths:
- 'apps/playground/**'
- 'packages/voltaire-ts/**'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build voltaire-ts (for workspace dep)
run: pnpm --filter @tevm/voltaire run build:dist
- name: Build playground
run: pnpm --filter @tevm/playground run build
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: apps/playground
vercel-args: '--prod'