Skip to content

Commit 32dde03

Browse files
Refactor deployVercel.yml to use amondnet/vercel-action for deployment
1 parent df20251 commit 32dde03

1 file changed

Lines changed: 7 additions & 16 deletions

File tree

.github/workflows/deployVercel.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,11 @@ jobs:
1313
- name: Checkout repository
1414
uses: actions/checkout@v3
1515

16-
- name: Set up Node.js
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: "20"
20-
21-
- name: Install dependencies
22-
run: npm install --legacy-peer-deps
23-
24-
- name: Build the project
25-
run: npm run build
26-
2716
- name: Deploy to Vercel
28-
env:
29-
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
30-
run: |
31-
npm install -g vercel
32-
vercel --prod --confirm --token $VERCEL_TOKEN
17+
uses: amondnet/vercel-action@v25
18+
with:
19+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
20+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
21+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
22+
working-directory: ./
23+
vercel-args: '--prod'

0 commit comments

Comments
 (0)