From 5b2703ac3d408727c06c3fcec1d55e71f992abdb Mon Sep 17 00:00:00 2001 From: Mo Gorhom Date: Mon, 21 Dec 2020 15:02:34 +0100 Subject: [PATCH] chore: updated auto-changelog config (#128) --- .auto-changelog | 7 +++++++ .release-it.json | 6 +++--- release-template.hbs | 9 --------- 3 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 .auto-changelog diff --git a/.auto-changelog b/.auto-changelog new file mode 100644 index 00000000..751d0584 --- /dev/null +++ b/.auto-changelog @@ -0,0 +1,7 @@ +{ + "template": "./release-template.hbs", + "handlebarsSetup": "./scripts/auto-changelog.js", + "ignoreCommitPattern": "^chore: release v", + "unreleased": true, + "startingVersion": "v3.0.0-alpha.0" +} \ No newline at end of file diff --git a/.release-it.json b/.release-it.json index bc702809..179a49b4 100644 --- a/.release-it.json +++ b/.release-it.json @@ -3,11 +3,11 @@ "push": true, "tagName": "v${version}", "commitMessage": "chore: release v${version}", - "changelog": "auto-changelog --stdout --commit-limit false --ignore-commit-pattern \"^chore: release v\" --unreleased --template ./release-template.hbs --tag-pattern \"^v\\d+\\.\\d+\\.\\d+$\" --handlebars-setup ./scripts/auto-changelog.js" + "changelog": "auto-changelog --stdout" }, "github": { "release": true, - "releaseNotes": "auto-changelog --stdout --commit-limit false --ignore-commit-pattern \"^chore: release v\" --unreleased --template ./release-template.hbs --tag-pattern \"^v\\d+\\.\\d+\\.\\d+$\" --handlebars-setup ./scripts/auto-changelog.js" + "releaseNotes": "auto-changelog --stdout -p" }, "npm": { "publish": false @@ -18,6 +18,6 @@ } }, "hooks": { - "after:bump": "auto-changelog -p --ignore-commit-pattern \"^chore: release v\" --template ./release-template.hbs --tag-pattern \"^v\\d+\\.\\d+\\.\\d+$\" --handlebars-setup ./scripts/auto-changelog.js" + "after:bump": "auto-changelog -p" } } diff --git a/release-template.hbs b/release-template.hbs index 400525b9..3daecc02 100644 --- a/release-template.hbs +++ b/release-template.hbs @@ -1,14 +1,5 @@ # Changelog -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -{{#unless options.hideCredit}} - Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -{{/unless}} - {{#each releases}} {{#if href}} ## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}}