Skip to content

Commit

Permalink
build: update release script to handle yarn berry version command
Browse files Browse the repository at this point in the history
  • Loading branch information
tkajtoch committed Jun 10, 2024
1 parent 971c76e commit 1cfba6b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/eui/scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,15 @@ const hasStep = (step) => {
updateChangelog(changelog, versionTarget);
execSync('git commit -m "Updated changelog" -n');

// update package.json version, git commit, git tag
execSync(`yarn version --new-version ${versionTarget} --version-tag-prefix=v --version-git-tag=true --version-commit-hooks=false`, execOptions);
// Update version number
execSync(`yarn version ${versionTarget}`, execOptions);

// Commit version number update
execSync('git add package.json', execOptions);
execSync(`git commit --no-verify -m "${versionTarget}"`, execOptions);

// Create a tag
execSync(`git tag -a -m "v${versionTarget}" "v${versionTarget}"`, execOptions);
}

if (hasStep('tag') && !isDryRun) {
Expand Down

0 comments on commit 1cfba6b

Please sign in to comment.