Skip to content

Hotfix/input parsing in action workflows #6

Hotfix/input parsing in action workflows

Hotfix/input parsing in action workflows #6

Workflow file for this run

# Builds Vercel preview output artifacts for later deploy workflows
name: Build Preview
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions: {}
jobs:
build-preview:
name: Build Preview
runs-on: ubuntu-latest
environment: preview
permissions:
actions: write
contents: read
env:
PUBLIC_GOOGLE_MAPS_API_KEY: ${{ vars.PUBLIC_GOOGLE_MAPS_API_KEY }}
PUBLIC_SENTRY_DSN: ${{ vars.PUBLIC_SENTRY_DSN }}
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.1
- name: Setup Node.js
uses: actions/setup-node@v6.1.0
with:
node-version: '22.x'
cache: 'npm'
- name: Install dependencies
run: npm ci --force
- name: Install Vercel CLI (pinned)
run: npm install -g vercel@50.1.3
- name: Build (preview)
env:
VERCEL_ORG_ID: ${{ vars.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ vars.VERCEL_PROJECT_ID }}
run: NODE_ENV=preview vercel build --target=preview --token "${{ secrets.VERCEL_TOKEN }}" --yes
- name: Upload Vercel build output
if: always()
uses: actions/upload-artifact@v6
with:
name: vercel-build-preview
path: .vercel/output
retention-days: 30