Skip to content

Commit

Permalink
fix(semver): commit order in sync workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wSedlacek committed Apr 28, 2022
1 parent e64ae62 commit 462a2a7
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions packages/semver/src/executors/version/version.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { concat, forkJoin, Observable, of } from 'rxjs';
import { forkJoin, Observable, of } from 'rxjs';
import { concatMap } from 'rxjs/operators';
import {
insertChangelogDependencyUpdates,
updateChangelog
updateChangelog,
} from './utils/changelog';
import { addToStage, commit, createTag } from './utils/git';
import { logStep } from './utils/logger';
Expand Down Expand Up @@ -50,7 +50,7 @@ export function versionWorkspace({
}: {
skipRootChangelog: boolean;
} & CommonVersionOptions) {
return concat(
return forkJoin([
getProjectRoots(options.workspaceRoot).pipe(
concatMap((projectRoots) =>
_generateChangelogs({
Expand Down Expand Up @@ -88,23 +88,24 @@ export function versionWorkspace({
) as string[],
dryRun,
})
),
concatMap(() =>
commit({
dryRun,
noVerify,
commitMessage,
projectName,
})
),
concatMap(() =>
createTag({
dryRun,
tag,
commitMessage,
projectName,
})
)
),
]).pipe(
concatMap(() =>
commit({
dryRun,
noVerify,
commitMessage,
projectName,
})
),
concatMap(() =>
createTag({
dryRun,
tag,
commitMessage,
projectName,
})
)
);
}
Expand Down

0 comments on commit 462a2a7

Please sign in to comment.