From f0524fb5ee343924233bcb7c1b7ba17817625dfc Mon Sep 17 00:00:00 2001 From: Vasily Kuzin Date: Wed, 6 Mar 2024 18:33:32 +0300 Subject: [PATCH] feat: add option to sign git tags (#117) --- src/commands/default.ts | 2 +- src/config.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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[];