-
Notifications
You must be signed in to change notification settings - Fork 25
41 lines (32 loc) · 1.04 KB
/
frontend-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
name: Frontend-deploy
on:
push:
branches: [ develop,main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "⚡ Checkout"
uses: actions/checkout@v3
- name: "🧪 Setup node"
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: "📦 Install Dependencies"
working-directory: ./client
run: yarn install --frozen-lockfile
- name: "🌹 Format Code"
working-directory: ./client
run: yarn format
- name: "🧶 Lint Code"
working-directory: ./client
run: yarn lint
- name: "⭐️ Deploy frontend to vercel"
uses: amondnet/vercel-action@v20 #deploy
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.VERCEL_ORGANISATION_ID }} #Required
vercel-args: '--prod'
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} #Required
working-directory: ./client