Since it's not possible to update the pluginVersion in gradle.properties before creating the tag during publishRelease, we'll switch from the beta version to the release version following these steps:
- When pushing the commit that updates the CHANGELOG, include a change that updates the pluginVersion in gradle.properties.
- By merging the PR that updates the CHANGELOG, merge both the updated release notes and the plugin version into the main branch.
- During publish Release, create the release tag based on the main branch and publish the release.