From c92bdd5b48b8805e9ea4cbac72007391b9ba0efe Mon Sep 17 00:00:00 2001 From: Bill Wallace Date: Wed, 11 Feb 2026 09:20:14 -0500 Subject: [PATCH] fix: Missing tag (#5808) --- publish-version.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/publish-version.mjs b/publish-version.mjs index 68401bf40..b9755b010 100644 --- a/publish-version.mjs +++ b/publish-version.mjs @@ -97,6 +97,11 @@ async function run() { // This combines the version.json commit and package version updates into one commit await execa('git', ['commit', '--amend', '--no-edit']); + // Lerna created a local tag (e.g. v3.13.0-beta.7) pointing to the pre-amend commit. + // Move the tag to the amended commit so the release tag matches what we push. + const tagName = `v${nextVersion}`; + await execa('git', ['tag', '-f', tagName]); + console.log('Pushing changes...'); // Note: Force push is not necessary here because: @@ -106,6 +111,9 @@ async function run() { // A regular push is sufficient since we're pushing a commit that doesn't exist on the remote yet await execa('git', ['push', 'origin', branchName]); + console.log('Pushing tag...'); + await execa('git', ['push', 'origin', tagName]); + console.log('Version set using lerna'); }