alpha
Login
or
Join now
danielroe.dev
/
synchub.to
Star
1
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
mirror your GitHub repos to tangled.org automatically
Star
1
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
ci: add vercel deploy step
author
Daniel Roe
date
2 hours ago
(Jun 25, 2026, 6:31 PM +0100)
commit
7a2c9cdc
7a2c9cdcb0c04bdac5f1b976c9f2c9830ce7ba66
parent
008c1d80
008c1d805fdd299c412f2670b3184b5f1382892f
+34
1 changed file
Expand all
Collapse all
Unified
Split
.tangled
workflows
deploy.yml
+34
.tangled/workflows/deploy.yml
Reviewed
···
1
1
+
# Deploy to Vercel.
2
2
+
#
3
3
+
# Pushes to `main` ship to production; pull requests targeting `main` get a
4
4
+
# preview deployment. The Vercel CLI pulls project settings + env from Vercel,
5
5
+
# builds locally, then uploads the prebuilt `.vercel/output`.
6
6
+
when:
7
7
+
- event: ["push"]
8
8
+
branch: ["main"]
9
9
+
- event: ["pull_request"]
10
10
+
branch: ["main"]
11
11
+
engine: microvm
12
12
+
image: nixos
13
13
+
dependencies:
14
14
+
- pnpm
15
15
+
- nodejs
16
16
+
steps:
17
17
+
- name: "Install dependencies"
18
18
+
command: pnpm install --frozen-lockfile
19
19
+
20
20
+
- name: "Deploy"
21
21
+
command: |
22
22
+
set -euo pipefail
23
23
+
24
24
+
if [ "$TANGLED_REF_NAME" = "main" ]; then
25
25
+
target="production"
26
26
+
prod_flag="--prod"
27
27
+
else
28
28
+
target="preview"
29
29
+
prod_flag=""
30
30
+
fi
31
31
+
32
32
+
pnpm dlx vercel@latest pull --yes --environment="$target" --token="$VERCEL_TOKEN"
33
33
+
pnpm dlx vercel@latest build $prod_flag --token="$VERCEL_TOKEN"
34
34
+
pnpm dlx vercel@latest deploy --prebuilt $prod_flag --token="$VERCEL_TOKEN"