Skip to content

fix(ci): replace lerna with nx release in canary workflow#1196

Merged
tokio-on-jupiter merged 1 commit intomainfrom
fix/canary-workflow-nx-release
Mar 4, 2026
Merged

fix(ci): replace lerna with nx release in canary workflow#1196
tokio-on-jupiter merged 1 commit intomainfrom
fix/canary-workflow-nx-release

Conversation

@tokio-on-jupiter
Copy link
Contributor

Summary

  • Canary releases have been failing since the nx 22.5.3 pin landed on the PLATENG-800 branch — lerna v7.4.2 bundles nx 16.10.0 internally, which cannot parse the nx 22 workspace project graph (GenericFailure in getNxWorkspaceFilesFromContext)
  • Replaces all lerna commands with nx equivalents: nx show projects --affected for detection, a single-pass Node script for canary version bumping, nx run-many -t build:dist for builds, and nx release publish --tag canary for publishing (matching the production release flow in build.yml)

Context

This unblocks canary releases for PR #1188 (PLATENG-800). The root cause is lerna's bundled nx 16 vs the workspace's nx 22 — they're incompatible. Since the repo is migrating off lerna anyway, this just accelerates that for the canary workflow.

Test plan

@tokio-on-jupiter tokio-on-jupiter requested a review from a team as a code owner March 3, 2026 22:16
lerna v7.4.2 bundles nx 16.10.0 internally, which cannot parse the
workspace project graph after pinning root nx to 22.5.3. This causes
GenericFailure in getNxWorkspaceFilesFromContext on every canary run.

Replace all lerna commands with nx equivalents:
- Detection: nx show projects --affected
- Version bump: single-pass Node script (handles cross-deps)
- Build: nx run-many -t build:dist
- Publish: nx release publish --tag canary (matches production)
@tokio-on-jupiter tokio-on-jupiter force-pushed the fix/canary-workflow-nx-release branch from 287678d to efdf425 Compare March 3, 2026 22:47
@tokio-on-jupiter tokio-on-jupiter merged commit 0dd90fe into main Mar 4, 2026
8 checks passed
@tokio-on-jupiter tokio-on-jupiter deleted the fix/canary-workflow-nx-release branch March 4, 2026 15:28
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.

2 participants