Repository navigation
fix(release): tag releases v<version>, not monorepo-v<version> - #212
Merged
Merged
Conversation
The draft release for 5.1.0-beta came out tagged `monorepo-v5.1.0-beta`. `component: ""` does not mean "no component" - an empty string is falsy, so release-please fell back to deriving it from the root package.json name, @strapi-plugin-rest-cache/monorepo. That is not cosmetic. The npm-latest and npm-prerelease environments allow deployments only from `main` and from tags matching `v*`, and a release event runs on refs/tags/<tag>. `monorepo-v5.1.0-beta` matches neither, so the publish job would have been refused by the environment gate rather than by anything that explains itself. `include-component-in-tag: false` is the actual switch - tag-name.js only prefixes the component when it is set. The tag becomes v5.1.0-beta, which is what every tag in this repo has looked like since v4, and what the environment rules were written for. Co-Authored-By: Claude <noreply@anthropic.com>
derrickmehaffy
added a commit
that referenced
this pull request
Aug 14, 2026
The root CHANGELOG.md jumped straight from 5.1.0-beta to 4.2.8. Three releases that actually shipped were missing from it: 4.2.9, 5.0.0 and 5.0.1. They were never lost, just recorded elsewhere. The root file is inherited from the strapi-plugin-rest-cache repository and stopped being maintained at 4.2.8, and the 5.x entries were kept in packages/plugin-rest-cache/CHANGELOG.md instead. Releases are now cut from the root, so the root file is the changelog and the gap became visible the moment 5.1.0-beta landed on top of it. Reconstructed from what shipped: the v5.0.0 GitHub release for the Strapi 5 migration and its breaking changes, the package changelog for 5.0.1, and the commits between v4.2.8 and v4.2.9. Two links are corrected too. The 5.1.0-beta heading compared monorepo-v5.0.1...monorepo-v5.1.0-beta, and neither tag exists - that naming came from the component bug fixed in #212. It now compares against v5.0.0. And 5.0.1 is no longer a compare link at all: it was published to npm without a tag or release, so there is nothing to compare against. Co-authored-by: Claude <noreply@anthropic.com>
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.
Good catch on the tag. The draft came out as:
Why
component: ""does not mean "no component". An empty string is falsy, sorelease-please fell back to deriving the component from the root
package.jsonname —@strapi-plugin-rest-cache/monorepo→monorepo.include-component-in-tag: falseis the real switch. Fromutil/tag-name.js:This would have blocked the publish
Not cosmetic.
npm-latestandnpm-prereleaseallow deployments only frommainand from tags matchingv*, and areleaseevent runs onrefs/tags/<tag>.monorepo-v5.1.0-betamatches neither rule, so the publish job would have beenrefused by the environment gate — and that failure explains itself poorly, since
it looks nothing like a tag-naming problem.
The tag becomes
v5.1.0-beta: what every tag here has looked like since v4, andwhat those environment rules were written for.
The existing draft has to be recreated
It is already tagged wrong, so after this merges:
monorepo-v5.1.0-betadraft releaseautorelease: taggedback toautorelease: pendingrelease-pleaseworkflow — it recreates the draft asv5.1.0-betaI can do all three once this is in; nothing is published yet, so there is
nothing to unwind.
Also confirmed from the draft
prerelease=truewas set automatically, which answers the open question — youwill not need to tick the box by hand, and
publish.ymlwill correctly take thenext/npm-prereleasepath.🤖 Generated with Claude Code