ci: use a Turborepo remote cache for the monorepo build #38
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
CI runners are ephemeral, so the local Turborepo cache is lost after each job: every run rebuilds the 82 build tasks from nothing (1 min 27 to 4 min 15 depending on the runner), even when a single package changed.
Change
turbo.json: enable artifact signatures for the remote cache..forgejo/workflows/ci.yaml: the build step of thecijob uses the remote cache when the forge provides its settings. Onlydevelopandmainwrite to it; every other ref reads.publishjob does not use the remote cache: what is published to npm is built on the runner.Settings (organisation or repository)
TURBO_API,TURBO_TEAMTURBO_TOKEN,TURBO_REMOTE_CACHE_SIGNATURE_KEYWithout them the build runs as today, with no cache and no error.
Acceptance