Skip to content

Conversation

@OS-pedrogustavobilro
Copy link
Contributor

@OS-pedrogustavobilro OS-pedrogustavobilro commented Dec 10, 2025

Description

Found a few issues that caused the publishing of the plugin to Maven Central and CocoaPods to fail:

  1. running the native publishing from the same workflow as npm publishing with semantic-release, found that the commit it was checking out was the one that existed when the GitHub action is triggered, and not the one after running semantic-release. This caused the workflow to try and publish a 8.0.0-next.X version to Maven Central / CocoaPods, which shouldn't happen.
  2. A 8.0.0-next.3 version was published temporarily to CocoaPods (has since been removed), and right after that when I tried to re-run CocoaPods publishing the script was saying 8.0.0 already existed - basically an issue

This PR fixes those issues.

Other changes outside this PR

Also, the sonatype staging id was wrong for this repo (and capacitor-haptics) - updated the GitHub Action secret to fix this + There was an incorrect character in the signing key secret that also made release signing fail with Invalid key.

Both of these were changed for capacitor-haptics and capacitor-keyboard.

Context

https://outsystemsrd.atlassian.net/browse/RMET-4860

Type of changes

  • Fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Refactor (cosmetic changes)
  • Breaking change (change that would cause existing functionality to not work as expected)

`semantic-release` in `release.plugin.yml` creates a commit that is necessary for the native publish (version update), but those workflows still reference the the (older) commit from triggering the release GitHub action. By pull, we make sure main is synced when trying to release.
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