Skip to content

Commit

Permalink
Fix commit order in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed May 22, 2023
1 parent 3457d3f commit 0ee31f1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,8 @@ async function commitChanges(newVersion, gitTag, isMainBranch) {
...(isMainBranch ? [CHANGELOG] : [])
]);
await runWithEcho('git', ['commit', '-m', newVersion]);
await Promise.all([
runWithEcho('git', ['tag', gitTag]),
isMainBranch && runWithEcho('git', ['branch', DOCUMENTATION_BRANCH, '--force', gitTag])
]);
await runWithEcho('git', ['tag', gitTag]);
isMainBranch && (await runWithEcho('git', ['branch', DOCUMENTATION_BRANCH, '--force', gitTag]));
}

function releasePackages(newVersion) {
Expand Down

0 comments on commit 0ee31f1

Please sign in to comment.