Skip to content

vercel push added v8 - Vercel confirm #39

vercel push added v8 - Vercel confirm

vercel push added v8 - Vercel confirm #39

Workflow file for this run

name: E2E / Sanity / Push
on:
push:
branches:
- main
jobs:
Portfolio_E2E_Push_Main:
timeout-minutes: 30
runs-on: ubuntu-latest
env:
ESLINT_DISABLED: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps chromium
- name: Install Vercel CLI
run: npm install -g vercel
- name: Run vercel tests
run: npx playwright test --grep "@vercel" --project="Chrome"
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: playwright-report
path: playwright-report
retention-days: 5
- name: Build for Vercel
if: success()
run: |
npm run build
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
- name: Push to Vercel
if: success()
run: |
npx vercel --prod --confirm
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}