Skip to content

Commit

Permalink
add release system
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Mar 5, 2021
1 parent 1a24627 commit 79e9ffc
Show file tree
Hide file tree
Showing 5 changed files with 14,318 additions and 205 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
dist
.nyc_output
coverage/
.changelog/
11 changes: 11 additions & 0 deletions .release-it.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
git: {
changelog: 'npx auto-changelog --template changelog.template --unreleased-only --stdout --load-github-issue-data --github-cache-dir .changelog',
},
hooks: {
'after:bump': 'npx auto-changelog --template changelog.template --unreleased-only --prepend --load-github-issue-data --github-cache-dir .changelog --package',
},
github: {
release: true,
}
};
15 changes: 15 additions & 0 deletions changelog.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{#each releases}}
{{title}} / {{isoDate}}
==================
{{#if merges}}
{{#each merges}}
* {{#if commit.breaking}}**Breaking change:** {{/if}}{{message}} #{{id}} from @{{githubIssue.user.login}}
{{/each}}
{{/if}}

{{#if fixes}}
{{#each fixes}}
* FIX: {{#if commit.breaking}}**Breaking change:** {{/if}}{{commit.subject}}{{#each fixes}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}{{/each}}
{{/each}}
{{/if}}
{{/each}}
Loading

0 comments on commit 79e9ffc

Please sign in to comment.