Skip to content

Commit

Permalink
feat: add option to sign git tags (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
ExEr7um committed Mar 6, 2024
1 parent b6f0d25 commit f0524fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/default.ts
Expand Up @@ -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 });
Expand Down
1 change: 1 addition & 0 deletions src/config.ts
Expand Up @@ -14,6 +14,7 @@ export interface ChangelogConfig {
from: string;
to: string;
newVersion?: string;
signTags?: boolean;
output: string | boolean;
publish: {
args?: string[];
Expand Down

0 comments on commit f0524fb

Please sign in to comment.