Skip to content

Commit

Permalink
Fix yarn version bug with backports (#8114)
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored Nov 6, 2024
1 parent e58f336 commit 5cad830
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/eui/scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ const hasStep = (step) => {

// Update version number
execSync(`yarn version ${versionTarget}`, execOptions);
// `yarn version` sometimes has a bug with the suffixed releases (e.g. `-backport.*`)
// where it doesn't properly set the version target. Running the command twice in a row
// appears to fix the issue for some reason ¯\_(ツ)_/¯
if (isSpecialRelease) {
execSync(`yarn version ${versionTarget}`, execOptions);
}

// Commit version number update
execSync('git add package.json', execOptions);
Expand Down

0 comments on commit 5cad830

Please sign in to comment.