File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to Vercel
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - master
8+ paths :
9+ - ' frontend/**'
10+ pull_request :
11+ paths :
12+ - ' frontend/**'
13+
14+ jobs :
15+ deploy :
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@v4
21+
22+ - name : Setup Node.js
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : " 18"
26+ cache : " npm"
27+ cache-dependency-path : frontend/package-lock.json
28+
29+ - name : Install dependencies
30+ run : |
31+ cd frontend
32+ npm ci
33+
34+ - name : Deploy to Vercel
35+ uses : amondnet/vercel-action@v25
36+ with :
37+ vercel-token : ${{ secrets.VERCEL_TOKEN }}
38+ vercel-org-id : ${{ secrets.VERCEL_ORG_ID }}
39+ vercel-project-id : ${{ secrets.VERCEL_PROJECT_ID }}
40+ working-directory : ./frontend
You can’t perform that action at this time.
0 commit comments