Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
fuko
/
trytanstackdb.com
Pull requests
fuko
trytanstackdb.com
Public
Synced with GitHub
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
Deploy v2 to v2.trytanstackdb.com with cf from TanStack Source CI
#100002
(GitHub #52)
Send to my agent
Merged
fuko
merged 2 commits into
v2
from
deploy-v2-subdomain
·
merged by
fuko
2 weeks ago
View on GitHub
Conversation
1
Commits
2
Files changed
9
Impact
Showing
9 changed files
with
43 additions
and
4 deletions
(loading 5).
x
0 of 9 viewed, 9 left
Files
Hide whitespace
Unified
Split
32 additions and 0 deletions
+32
-0
.source/workflows/ci.ts
Added
Diff
Before/After
Viewed
.source/workflows/ci.ts
View file
@@ -0,0 +1,32 @@
1
+
import
{ defineWorkflow, pullRequest, push }
from
"@tanstack-source/ci"
;
2
+
3
+
// `setup.pnpm()` reads only the top-level `packageManager` field, but this
4
+
// project names its pnpm in `devEngines.packageManager`.
5
+
const
setupPnpm = {
6
+
name
:
"Set up pnpm"
,
7
+
run
:
`npm install --global "pnpm@$(node -p 'require("./package.json").devEngines.packageManager.version')"`
,
8
+
};
9
+
const
install = {
name
:
"Install"
,
run
:
"pnpm install --frozen-lockfile"
};
10
+
11
+
// Checks every pull request into `v2`, and deploys each push to `v2` to
12
+
// https://v2.trytanstackdb.com (see `cloudflare.config.ts`).
13
+
export
default
defineWorkflow
(
"ci"
, {
14
+
on
: [
pullRequest
({
branches
: [
"v2"
] }),
push
({
branches
: [
"v2"
] })],
15
+
})
16
+
.
job
(
"check"
, {
17
+
egress
: [
"registry.npmjs.org"
],
18
+
steps
: [
19
+
setupPnpm,
20
+
install,
21
+
{
name
:
"Format, lint and type check"
,
run
:
"pnpm exec vp check"
},
22
+
{
name
:
"Test"
,
run
:
"pnpm exec vp test"
},
23
+
],
24
+
})
25
+
.
job
(
"deploy"
, {
26
+
needs
: [
"check"
],
27
+
if
: (ctx) => ctx.
event
===
"push"
,
Home
Search
Explore
Menu