Bump the npm-dependencies group across 1 directory with 4 updates #20
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |