Skip to content

fix(repo): align release-please tag format with existing tags#63

Merged
anilanar merged 1 commit into
masterfrom
fix-release-please-tag-format
May 22, 2026
Merged

fix(repo): align release-please tag format with existing tags#63
anilanar merged 1 commit into
masterfrom
fix-release-please-tag-format

Conversation

@anilanar
Copy link
Copy Markdown
Member

Summary

Fix the wrong-version bumps in the closed PR #62.

release-please was generating tags as messenger@v2.0.1 — directory-name component + v prefix — but the actual repo tags are @userlike/messenger@2.0.1. Since release-please couldn't match either format to find the prior release, it fell back to scanning the entire git history and proposed to "re-release" old feat: and BREAKING CHANGE: commits, producing wrong bumps (messenger 2.0.1 → 2.1.0, messenger-internal 3.3.1 → 4.0.0).

Changes

  • "include-v-in-tag": false — drop the v prefix
  • "component": "@userlike/messenger" / "@userlike/messenger-internal" — use the full scoped name as the tag component instead of the directory name

Result: release-please's generated tag becomes @userlike/messenger@<version> (exactly matching existing tags), so it correctly finds the last release and only scans commits since. Since the recent commits are all chore:/ci: (non-releasing), release-please should sit idle after this lands.

Test plan

  • CI passes
  • After merge, watch release-please.yml run on master
  • Confirm no new Release PR opens (no releasable commits since 2.0.1 / 3.3.1)

release-please was generating tags as 'messenger@v2.0.1' (component =
directory name, v-prefix on version), but the existing repo tags are
'@userlike/messenger@2.0.1' (component = full scoped name, no v).
The mismatch meant release-please couldn't find any prior tag for
either package and fell back to scanning all of git history - it
then proposed to 're-release' ancient feat: and BREAKING CHANGE:
commits, bumping messenger-internal to 4.0.0 over an old widget_key
removal and messenger to 2.1.0 over old feat:s. See closed PR #62.

Fix:
- component: '@userlike/messenger' (and same for -internal) overrides
  the directory-name default.
- include-v-in-tag: false drops the v-prefix.

After this lands, release-please will compute tags as
'@userlike/messenger@<version>' which matches the existing tags
exactly, find the right starting points, and scan only commits since
2.0.1 / 3.3.1. Since none of those are conventional-commit
feat:/fix:/BREAKING, no release PR should open.
@anilanar anilanar requested a review from buscape May 22, 2026 17:38
@anilanar anilanar merged commit e5bbe5a into master May 22, 2026
1 check passed
@anilanar anilanar deleted the fix-release-please-tag-format branch May 22, 2026 17:39
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