logo

Turborepo caching

Turborepo is a popular build system optimized for Javascript and Typescript.

Namespace has first-class support for high-performance turborepo caching. Caches are backed by storage systems running along side your jobs, for maximum network bandwidth and storage performance.

Getting started with GitHub Actions

To use turborepo caching, you can simply add Namespace's setup-turbocache to your workspace:

jobs:
build:
runs-on: namespace-profile-default
steps:
- name: Checkout code
uses: actions/checkout@4
- name: Set up caching
uses: namespace-actions/setup-turbocache@v0
- name: Go turbo
run: turbo build

Configuration

By default, caching is performed to a single shared storage main. But you can isolate your caches by specifying a separate team (in turbo parlance):

jobs:
build:
runs-on: namespace-profile-default
steps:
- name: Checkout code
uses: actions/checkout@4
- name: Set up caching
uses: namespace-actions/setup-turbocache@v0
with:
team: secondary
- name: Go turbo
run: turbo build

Usage

Cache usage is aggregated and accounted for together with our types of caching available in Namespace.