Skip to content

ci: skip publishing if behind main#2562

Merged
tido64 merged 1 commit into
trunkfrom
tido/publish-latest-only
Sep 15, 2025
Merged

ci: skip publishing if behind main#2562
tido64 merged 1 commit into
trunkfrom
tido/publish-latest-only

Conversation

@tido64
Copy link
Copy Markdown
Member

@tido64 tido64 commented Sep 11, 2025

Description

Nx Release does not check whether it's behind main before performing Git operations.

Platforms affected

  • Android
  • iOS
  • macOS
  • visionOS
  • Windows

Test plan

Run the following command in a Bash shell:

if git merge-base --is-ancestor origin/trunk HEAD; then echo PUBLISH; fi

PUBLISH should only be printed if we're in sync with origin/trunk.

@tido64 tido64 requested a review from Saadnajmi September 11, 2025 12:01
@tido64 tido64 requested a review from JasonVMo as a code owner September 11, 2025 12:01
@github-actions github-actions Bot added platform: Android This affects Android platform: iOS This affects iOS platform: macOS This affects macOS platform: Windows This affects Windows platform: visionOS labels Sep 11, 2025
@tido64 tido64 merged commit 9934332 into trunk Sep 15, 2025
30 checks passed
@tido64 tido64 deleted the tido/publish-latest-only branch September 15, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: Android This affects Android platform: iOS This affects iOS platform: macOS This affects macOS platform: visionOS platform: Windows This affects Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants