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 alongside 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-defaultsteps:- name: Checkout codeuses: actions/checkout@v4- name: Set up cachinguses: namespace-actions/setup-turbocache@v0- name: Go turborun: 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-defaultsteps:- name: Checkout codeuses: actions/checkout@4- name: Set up cachinguses: namespace-actions/setup-turbocache@v0with:team: secondary- name: Go turborun: turbo build
Usage
Namespace accounts Turborepo cache usage in two categories:
- Turborepo cache at rest
- Active Turborepo cache usage
For detailed billing information for each item as well as included amounts in your plans, visit the pricing page.