File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-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 : [main]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - name : Setup Node.js
15+ uses : actions/setup-node@v4
16+ with :
17+ node-version : ' 22'
18+
19+ - name : Setup pnpm
20+ uses : pnpm/action-setup@v4
21+ with :
22+ version : 8
23+ run_install : false
24+
25+ - name : Get pnpm store directory
26+ shell : bash
27+ run : |
28+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
29+
30+ - name : Setup pnpm cache
31+ uses : actions/cache@v4
32+ with :
33+ path : ${{ env.STORE_PATH }}
34+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
35+ restore-keys : |
36+ ${{ runner.os }}-pnpm-store-
37+
38+ - name : Install dependencies
39+ run : pnpm install
40+
41+ - name : Build project
42+ run : pnpm run build
43+
44+ - name : Deploy to Vercel
45+ uses : amondnet/vercel-action@v25
46+ with :
47+ vercel-token : ${{ secrets.VERCEL_TOKEN }}
48+ vercel-org-id : ${{ secrets.VERCEL_ORG_ID }}
49+ vercel-project-id : ${{ secrets.VERCEL_PROJECT_ID }}
50+ vercel-args : ' --prod'
You can’t perform that action at this time.
0 commit comments