Skip to content

feat: Dependency-aware targets via Turborepo#203

Merged
jakebromberg merged 3 commits intomainfrom
feat/add-turbo-based-tag-versioning
Mar 10, 2026
Merged

feat: Dependency-aware targets via Turborepo#203
jakebromberg merged 3 commits intomainfrom
feat/add-turbo-based-tag-versioning

Conversation

@JacksonMeade
Copy link
Contributor

Updates auto-deploy so tags and deploys run for affected apps based on the workspace dependency graph, not only on changes under apps/.

Problem

“Detect Build Target” only looked at apps/ changes. Edits in shared/ (e.g. shared/database, shared/authentication) did not trigger deploys for backend or auth, even though both depend on those packages.

Changes

When no target is provided (e.g. push to main), the setup job runs turbo ls --affected (comparing HEAD^ to HEAD) and parses the result to get app names under apps/. Shared-only changes now correctly include both apps in the deploy matrix.

Turbo is used only for affected detection; a minimal root turbo.json and a build task define the graph. Existing npm/Docker builds are unchanged.

  • Setup job: for the no-target path, adds Node setup, node_modules cache, and npm ci before turbo ls. Manual deploy (with target set) is unchanged.
  • Root package.json: added packageManager: "npm@10.9.4" and turbo as a devDependency so Turbo can resolve workspaces without the package-manager override.
  • Manual deploys and the rest of the pipeline (tagging, build, deploy) are unchanged; only how the target list is computed is now dependency-aware.

@AyBruno AyBruno force-pushed the feat/add-turbo-based-tag-versioning branch from 558dadd to ac7b28f Compare March 9, 2026 00:33
@jakebromberg jakebromberg force-pushed the feat/add-turbo-based-tag-versioning branch from 67c38a9 to b31d978 Compare March 10, 2026 04:01
@jakebromberg jakebromberg merged commit 9ea9846 into main Mar 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants