Skip to content

Commit

Permalink
build: update release script for yarn berry (#7826)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkajtoch authored Jun 10, 2024
1 parent 971c76e commit b752e50
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,11 +133,18 @@ 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);
}

if (hasStep('tag') && !isDryRun) {
// Create a tag
execSync(`git tag -a -m "v${versionTarget}" "v${versionTarget}"`, execOptions);

// Skip prepush test hook on all pushes - we should have already tested previously,
// or we skipped the test step for a reason
if (isSpecialRelease) {
Expand Down

0 comments on commit b752e50

Please sign in to comment.