Skip to content

Commit ad28510

Browse files
committed
fix2
1 parent 2c9c6db commit ad28510

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- name: Run Tests
2727
working-directory: ./frontend
28-
run: npm test --if-present
28+
run: npm test
2929

3030
- name: Build App
3131
working-directory: ./frontend
@@ -44,10 +44,17 @@ jobs:
4444
working-directory: ./frontend
4545
run: npm install
4646

47-
- name: Deploy to Vercel
47+
- name: Link Vercel Project
4848
working-directory: ./frontend
49-
run: npx vercel --prod --yes
49+
run: |
50+
npx vercel link --yes --token $VERCEL_TOKEN --project $VERCEL_PROJECT_ID --org $VERCEL_ORG_ID
5051
env:
5152
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
5253
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
5354
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
55+
56+
- name: Deploy to Vercel
57+
working-directory: ./frontend
58+
run: npx vercel deploy --prod --yes --token $VERCEL_TOKEN
59+
env:
60+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)