# Turborepo Remote Cache

Avrea provides a remote cache endpoint for [Turborepo](https://turbo.build/repo).
Task outputs are cached so that unchanged packages skip builds entirely.

## On Avrea runners

Turborepo environment variables are pre-configured:

```bash
TURBO_API="http://cache.avrea.com:8290"
TURBO_TOKEN="unused"
TURBO_TEAM="team_avrea"
```

Your workflow needs no changes:

```yaml title="workflow.yml"
jobs:
  build:
    runs-on: avrea-ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: 24
      - run: pnpm install --frozen-lockfile
      - run: pnpm turbo build
```

## Manual setup

Set the environment variables in your workflow:

```yaml
env:
  TURBO_API: "http://cache.avrea.com:8290"
  TURBO_TOKEN: "unused"
  TURBO_TEAM: "team_avrea"
```

No changes to `turbo.json` are required.