Skip to content

Fix/release pipeline spm pin and gates - #469

Merged
af-dudka merged 1 commit into
developmentfrom
fix/release-pipeline-spm-pin-and-gates
Aug 28, 2026
Merged

Fix/release pipeline spm pin and gates#469
af-dudka merged 1 commit into
developmentfrom
fix/release-pipeline-spm-pin-and-gates

Conversation

@af-dudka

Copy link
Copy Markdown

No description provided.

Version rewriting was spread across rc-release.yml and promote-release.yml as
inline sed calls. The two implementations drifted: rc-release guarded each
rewrite and staged lib/, promote did neither, so 7.0.2 was nearly published
reporting 7.0.2-rc1 from the public pluginVersion getter. Every silent version
bug this cycle had the same shape -- a pattern that stopped matching while sed
still exited 0.

Add scripts/set-version.sh as the single writer for pubspec.yaml, the three
plugin constants, the podspec and the SPM manifest, with native pins rewritten
only when passed. Each rewrite asserts its pattern matched first. Both
workflows now call it, and scripts/verify-version-consistency.sh reads the same
surfaces back in rc-release, promote and production.

This also closes the SPM gap: rc-release rewrote only the podspec's
AppsFlyerFramework dependency, so a bumped ios_sdk_version left Package.swift
behind and SPM and CocoaPods consumers linked different native SDKs. The
AppsFlyerRPC binary target stays manual because its checksum cannot be derived
from a version; the consistency check still compares its version.

Two gates could not stop a release. create-github-release ran under always()
without checking the publish job, so a tag and release could be created for a
version that never reached pub.dev. The duplicate-tag check looked up tags
before fetching them and matched origin/$VERSION, which resolves branches and
never a remote tag, so it never fired.

Co-authored-by: Cursor <cursoragent@cursor.com>
@af-dudka
af-dudka requested a review from af-obodovskyi August 28, 2026 11:31
@af-dudka
af-dudka changed the base branch from master to development August 28, 2026 11:32

@af-obodovskyi af-obodovskyi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@af-dudka
af-dudka merged commit 62fa8ba into development Aug 28, 2026
10 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.

2 participants