Draft
Fix GetVersionNumber always computing v3.0.0-rc.1 by preventing duplicate release branch config#1470
Conversation
…prevent duplicate release config Co-authored-by: ndorin <18535240+ndorin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job getVersion / GetVersionNumber
Fix GetVersionNumber always computing v3.0.0-rc.1 by preventing duplicate release branch config
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The shared
essentialsplugins-getversion.ymltemplate unconditionally replacesreplace-me-feature-branch/replace-me-prereleaseplaceholders in.releaserc.jsonfor every non-mainbranch. On thereleasebranch this injected a second"name": "release"entry alongside the hardcoded one, leaving semantic-release unable to identifyv3.0.0-rc.1as the priorrcrelease — so it recomputedv3.0.0-rc.1every run and failed withfatal: tag 'v3.0.0-rc.1' already exists.Changes
getVersionjob — replaces the reusableuses: …/essentialsplugins-getversion.yml@maincall with the equivalent inline steps, giving this repo control over the substitution guards.Replace branch nameandReplace prerelease namesteps now skip forreleaseanddevelopmentin addition tomain, preventing the duplicate branch entry:With the duplicate removed, semantic-release finds
v3.0.0-rc.1as the lastrcrelease and correctly increments tov3.0.0-rc.2on the next commit.runTestsdependency — therunTests → getVersion → build-4Seriesjob chain is maintained to match the currentreleasebranch structure.gha-find-replaceto@v3instead of@master.