Skip to content

chore(ci): Check every maven central version for android publish#2512

Open
OS-pedrogustavobilro wants to merge 1 commit intomainfrom
ci/native-android-publish-version-check
Open

chore(ci): Check every maven central version for android publish#2512
OS-pedrogustavobilro wants to merge 1 commit intomainfrom
ci/native-android-publish-version-check

Conversation

@OS-pedrogustavobilro
Copy link
Copy Markdown
Contributor

Description

This is a simple PR to check for all versions published to maven central, instead of just the latest one.

After this PR is merged, I'll still need to:

  1. Cherry-pick to 7.x (not relevant for now, but since we may start doing native publish on maintenance branches it will be relevant one day)
  2. Open equivalent PRs for other repositories.

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other

Rationale / Problems Fixed

In a situation where package.json version is older than the latest version on Maven Central (can happen if we trigger native android publish from a maintenance branch, or for plugins that have migrated from this repository like camera did recently), the publishing script was assuming that the version needed to be published, and would often fail because said version would already exist in Maven Central.

Tests or Reproductions

I ran it locally and also dry-ran in GitHub actions (without publishing part), it is correctly detecting the plugins that have the latest version in maven central, the ones who don't, and the ones who have the version in maven central that's not the latest (for main branch, the one example of that is camera, of which latest is 8.1.0, main has 8.0.2; prior to this PR it would try to publish 8.0.2 and fail with message that 8.0.2 already exists)

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