Skip to content

fix(ci): publish only changed packages - #479

Merged
Fridus merged 1 commit into
masterfrom
fix/selective-lerna-publish
Aug 20, 2026
Merged

Fridus merged 1 commit into
masterfrom
fix/selective-lerna-publish

Conversation

@Fridus

@Fridus Fridus commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Add excludeDependents: true to Lerna version/publish config so a change in omnipartners no longer cascades version bumps to @igloo-be-omnipartners/graphql-schema and @igloo-be-omnipartners/hooks.
  • Replace the double publish flow (lerna publish || true + from-package) with a script that skips publish when no package changed, then publishes only detected changes.
  • Align release commit messages with [skip ci] to avoid a redundant CI run after the release commit.

Test plan

  • Local: commit touching only packages/omnipartners → lerna changed returns omnipartners only (with excludeDependents)
  • Local: same commit without excludeDependents → 3 packages detected (confirms the previous behavior)
  • Local: lerna version patch --no-push bumps only omnipartners
  • Local: script exits cleanly when HEAD is already released
  • CI: after merge, next omnipartners-only change publishes only omnipartners on npm

Made with Cursor

Avoid cascading version bumps to graphql-schema and hooks when only omnipartners changes, and skip publish when nothing changed.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Fridus
Fridus merged commit 081243f into master Aug 20, 2026
10 checks passed
@Fridus
Fridus deleted the fix/selective-lerna-publish branch August 20, 2026 09:52
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.

1 participant