ci: use --token for each vercel command separately

This commit is contained in:
Rickard Andersson 2023-08-23 19:19:30 +03:00
parent 636ed30ba0
commit 4f4e142224

View File

@ -69,11 +69,9 @@ jobs:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v2 uses: actions/deploy-pages@v2
- name: Log in to Vercel
run: yarn vercel login --token ${{ secrets.vercel_token }}
- name: Pull Vercel configuration - name: Pull Vercel configuration
run: yarn vercel pull --yes run: yarn vercel pull --yes --token ${{ secrets.vercel_token }}
- name: Build Vercel bundle - name: Build Vercel bundle
run: yarn vercel build --prod run: yarn vercel build --prod
- name: Deploy to Vercel - name: Deploy to Vercel
run: yarn vercel deploy --prebuilt --prod run: yarn vercel deploy --prebuilt --prod --token ${{ secrets.vercel_token }}