-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 1.16 KB
/
Copy pathfrontend-prod.yml
File metadata and controls
46 lines (39 loc) · 1.16 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
43
44
45
46
name: Deploy Frontend to Vercel [Prod]
on:
push:
branches: ["dev"]
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./apps/client
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: "9.0.0"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "pnpm"
- name: Install dependencies
working-directory: ./
run: pnpm install
- name: Add .npmrc
run: |
echo "auto-install-peers=true" >> .npmrc
echo "shamefully-hoist=true" >> .npmrc
echo "node-linker=hoisted" >> .npmrc
- name: Deploy to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
npm i -g vercel
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }}