Skip to content
Source
Sign inSign up
TanStack/showcase
A read-only demo of every feature
Every page of this repository is open, and nothing can change. Take a guided tour of what TanStack Source does.
This is a read-only demo: you can look, but not save.

CI settings

Turn the workflows in .source/workflows/ on and off, and set their runner, limits, approval gates, shared steps, cache and hidden workflows. Secrets and environments are in Secrets, and variables in Variables. Branch rules and required checks are in Branches.

Workflows

The workflows in .source/workflows/ of the default branch. A workflow that is off starts no runs, from its triggers or by hand. A required check of a workflow that is off stays pending until you turn the workflow on again.
  • .source/workflows/ci.ts

    Starts on: Pull request, Push

  • .source/workflows/preview.ts

    Starts on: Pull request

  • Hidden

    .source/.hidden/license.ts

    Starts on: Pull request

Runner, limits and approvals

Where the CI jobs of this repository run. A job that sets runsOn in its workflow runs where runsOn says.

How many CI jobs of this repository run at the same time. This forge allows up to 100. Leave it empty to use 100. With 0, no new job starts: jobs wait in the queue.

How long the first pull request in the merge queue waits for its checks. When the time runs out, it leaves the queue and the next pull request moves to the front. The default is 60 minutes, and the most is 120.

Close fixed issues

A pull request that fixes issues closes them when it merges into the default branch. With the release job, they wait in the Staged list until a job marked release: true succeeds on a commit that contains the merge.

No workflow marks a job with release: true yet, so fixed issues close on merge.

Each src: import of the workflows names a commit, like src:tanstack/config@3f78685…/ci/setup.ts, not a tag or a branch. Run src ci update --pin to pin the imports. Whatever this says, a pinned commit must be on a branch or a tag of its repository.

Approval gates

A job of a protected run that is named here waits for a person to approve it. Write <job> for that job in every workflow, or <workflow>/<job> for one workflow.

No approval gates: protected jobs start without an approval.

Allowed workflow sources

Workflows share steps with src: imports, like src:TanStack/ci-steps@v1/setup.ts. Any public repository can be imported. A private repository of TanStack can be imported only when it is listed here. A public repository can't import from a private one.

No private repositories are allowed.

Cache

Jobs save and restore files with cache(). A run writes to its own scope: protected, its branch, or its pull request. Delete entries to make jobs build them again. The least recently used entries go first when the cache is full.

The cache is empty.

The CI caches agent opens a pull request that adds a cache to your workflow steps.

Delete entries by scope or by key

Hidden workflows

A hidden workflow runs next to the repository's own workflows, from a file you keep out of the repository. The file is stored encrypted in the vault (admins only) and never shown again. Its logs and artifacts are for admins; everyone else sees the contract below and whether it passed.
  • license

    grep MIT LICENSE

The same format as the files in .source/workflows/: export default defineWorkflow(...).job(...), with defineWorkflow from @tanstack-source/ci. The forge checks it on the next push or pull request, and problems show in the list above.

Contract

What contributors see. The file, its logs and its artifacts stay with the admins.