Skip to content

Commit 798fb9b

Browse files
committed
Fix Vercel CLI auth in production workflow
1 parent e60edda commit 798fb9b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/vercel-production.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,25 @@ jobs:
3535
- name: Pull Vercel Environment
3636
if: steps.vercel-config.outputs.configured == 'true'
3737
working-directory: docs/web
38-
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
38+
run: vercel pull --yes --environment=production
3939
env:
40+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
4041
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4142
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
4243
- name: Build
4344
if: steps.vercel-config.outputs.configured == 'true'
4445
working-directory: docs/web
45-
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
46+
run: vercel build --prod
4647
env:
48+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
4749
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4850
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
4951
- name: Deploy
5052
if: steps.vercel-config.outputs.configured == 'true'
5153
working-directory: docs/web
52-
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
54+
run: vercel deploy --prebuilt --prod
5355
env:
56+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
5457
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
5558
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5659
- name: Skip deploy when Vercel secrets are missing

0 commit comments

Comments
 (0)