Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option to sign git tags #117

Merged
merged 2 commits into from Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/default.ts
Expand Up @@ -105,7 +105,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;
templates: {
commitMessage?: string;
Expand Down