Skip to content

Commit fc59641

Browse files
committed
enable optional turborepo remote caching
1 parent 6d208a9 commit fc59641

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
permissions:
1111
contents: read
1212

13+
env:
14+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
15+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
16+
1317
concurrency:
1418
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}
1519
cancel-in-progress: true

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
permissions:
1111
contents: read
1212

13+
env:
14+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
15+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
16+
1317
concurrency:
1418
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}
1519
cancel-in-progress: true

‎README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ Reusable baseline for TypeScript, Rust, Python, and mixed-language projects.
1010

1111
The repository name, owner, branch names, and release metadata are resolved by GitHub Actions at runtime through `${{ github.* }}` values. Keep organization-specific details out of this baseline.
1212

13+
## Optional Turborepo remote caching
14+
15+
Turborepo repositories can use Vercel Remote Caching without changing the workflows. Add these repository settings:
16+
17+
- Secret: `TURBO_TOKEN`
18+
- Repository variable: `TURBO_TEAM`
19+
20+
CI and Test pass those values to every job. Non-Turborepo repositories and repositories without the settings simply use their normal local cache behavior. This does not require the repository to deploy to Vercel.
21+
1322
## License
1423

1524
Unless a repository says otherwise, new material is licensed under the GNU Affero General Public License v3.0-or-later. See [LICENSE](LICENSE) and [NOTICE](NOTICE).

0 commit comments

Comments
 (0)