Skip to content

Commit 428ae3d

Browse files
committed
chore: update Vercel deployment steps and install vercel using pnpm
1 parent 8cf2fc1 commit 428ae3d

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,23 @@ jobs:
7272
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
7373
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
7474
steps:
75+
- uses: pnpm/action-setup@v5
76+
77+
- name: Setup Node
78+
uses: actions/setup-node@v6
79+
with:
80+
node-version: 22
81+
7582
- name: Download artifact
7683
uses: actions/download-artifact@v4
7784
with:
7885
name: dist
7986
path: dist
8087

81-
- name: Install Vercel CLI
82-
run: npm install -g vercel@latest
88+
- name: Install vercel
89+
run: pnpm add vercel
8390

8491
- name: Deploy to Vercel
8592
run: |
8693
cd dist
87-
vercel --token=${{ secrets.VERCEL_TOKEN }} --yes --prod
94+
pnpm exec vercel --token=${{ secrets.VERCEL_TOKEN }} --yes --prod --prebuilt

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"lint-staged": "^16.4.0",
2424
"pngjs": "^7.0.0",
2525
"tsx": "^4.21.0",
26+
"vercel": "^42.0.0",
2627
"vitepress": "2.0.0-alpha.17"
2728
},
2829
"lint-staged": {

0 commit comments

Comments
 (0)