Skip to content

Commit

Permalink
fix: stage CHANGELOG.md and package.json when releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 21, 2023
1 parent d126f3a commit 69d375c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
);
}
Expand Down

0 comments on commit 69d375c

Please sign in to comment.