Skip to content

Commit

Permalink
fix: Create commit when --no-git-tag-version is used (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon authored Jan 11, 2024
1 parent dddc7b3 commit b89133d
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions packages/melos/lib/src/commands/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -354,25 +354,24 @@ mixin _VersionMixin on _RunMixin {
logger.newLine();
}

await _gitStageChanges(
workspace,
pendingPackageUpdates,
updateDependentsVersions: updateDependentsVersions,
);
await _gitCommitChanges(
workspace,
pendingPackageUpdates,
commitMessageTemplate,
updateDependentsVersions: updateDependentsVersions,
);

if (gitTag) {
await _gitStageChanges(
workspace,
pendingPackageUpdates,
updateDependentsVersions: updateDependentsVersions,
);
await _gitCommitChanges(
workspace,
pendingPackageUpdates,
commitMessageTemplate,
updateDependentsVersions: updateDependentsVersions,
);
await _gitTagChanges(
pendingPackageUpdates,
updateDependentsVersions: updateDependentsVersions,
);
}

if (gitTag) {
logger.success(
'Versioning successful. '
'Ensure you push your git changes and tags (if applicable) via '
Expand Down

0 comments on commit b89133d

Please sign in to comment.