From 69d375c56de2f37410d28872d7d372bcb914ddc2 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 21 Jan 2023 12:25:42 +0100 Subject: [PATCH] fix: stage `CHANGELOG.md` and `package.json` when releasing --- src/cli.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 8c8193b..0c15817 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -81,9 +81,10 @@ async function main() { // Commit and tag changes for release mode if (args.release) { if (args.commit !== false) { + await execa("git", ["add", "CHANGELOG.md", "package.json"], { cwd }); await execa( "git", - ["commit", "-am", `chore(release): v${config.newVersion}`], + ["commit", "-m", `chore(release): v${config.newVersion}`], { cwd } ); }