-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvercel.yml
More file actions
48 lines (43 loc) · 1.35 KB
/
Copy pathvercel.yml
File metadata and controls
48 lines (43 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Vercel preview parity
on:
pull_request:
permissions:
contents: read
concurrency:
group: vercel-preview-${{ github.event.pull_request.number }}
cancel-in-progress: true
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
jobs:
preview:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- run: npm ci
- name: Load the Vercel preview environment
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: npx vercel@58.1.0 pull --yes --environment=preview --token "$VERCEL_TOKEN"
- name: Build the preview
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: npx vercel@58.1.0 build --token "$VERCEL_TOKEN"
- name: Deploy the preview
id: deploy
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: |
preview_url="$(npx vercel@58.1.0 deploy --prebuilt --token "$VERCEL_TOKEN")"
printf 'url=%s\n' "$preview_url" >> "$GITHUB_OUTPUT"
- uses: loke-dev/deployproof@v0.3.0
with:
preview: ${{ steps.deploy.outputs.url }}
production: ${{ vars.PRODUCTION_URL }}
config: deployproof.config.json
strict: true