Skip to content

Commit 6443ed2

Browse files
committed
fix: double commit on publish
1 parent 0301f09 commit 6443ed2

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

packages/rollout/command.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -288,17 +288,10 @@ exports.handler = async ({
288288
await ConsoleUtilities.step(
289289
'Tagging and committing version bump',
290290
async () => {
291-
if (conventionalCommits) await updateChangelog(cwd, nextVersion);
292-
293-
await GitUtilities.addFile(pkgPath);
294-
await GitUtilities.commit(`Publish ${gitTag}`);
295-
},
296-
skipVersion || !conventionalCommits,
297-
);
291+
if (conventionalCommits) {
292+
await updateChangelog(cwd, nextVersion);
293+
}
298294

299-
await ConsoleUtilities.step(
300-
'Tagging and committing version bump',
301-
async () => {
302295
if (!skipVersion) {
303296
try {
304297
await GitUtilities.addFile(changelogPath);

0 commit comments

Comments
 (0)