diff --git a/src/commands/default.ts b/src/commands/default.ts index fb95653..9775e4a 100644 --- a/src/commands/default.ts +++ b/src/commands/default.ts @@ -133,7 +133,7 @@ export default async function defaultMain(args: Argv) { "{{newVersion}}", config.newVersion ); - await execa("git", ["tag", "-am", msg, body], { cwd }); + await execa("git", ["tag", ...(config.signTags ? ["-s"] : []), "-am", msg, body], { cwd }); } if (args.push === true) { await execa("git", ["push", "--follow-tags"], { cwd }); diff --git a/src/config.ts b/src/config.ts index 2c1cfed..7b6359f 100644 --- a/src/config.ts +++ b/src/config.ts @@ -14,6 +14,7 @@ export interface ChangelogConfig { from: string; to: string; newVersion?: string; + signTags?: boolean; output: string | boolean; publish: { args?: string[];