-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (42 loc) · 1.12 KB
/
deploy.yml
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
45
name: Deploy website
env:
NODE_ENV: production
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
FILE_ID: zHeGLN45wIgf39kqdvKpoj
on:
push:
branches: [main]
paths:
- .github/workflows/deploy.yml
- packages/**
pull_request:
paths:
- .github/workflows/deploy.yml
- packages/**
jobs:
docs:
runs-on: ubuntu-22.04
steps:
- name: 👀 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ⬢ Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: 🧶 Yarn install
run: yarn install --immutable
- name: 🚨 Lint code
run: yarn lint --max-warnings 0
- name: 📦️ Build packages
env:
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}
run: yarn build
- name: 🚀 Deploy website
uses: BetaHuhn/deploy-to-vercel-action@v1
with:
GITHUB_TOKEN: ${{ secrets.EXPO_BOT_GH_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
WORKING_DIRECTORY: packages/example-web