Skip to content

Commit

Permalink
Integrated release-it
Browse files Browse the repository at this point in the history
  • Loading branch information
valerybugakov committed Feb 24, 2020
1 parent 862fdf5 commit 2a52e09
Show file tree
Hide file tree
Showing 4 changed files with 1,043 additions and 227 deletions.
10 changes: 10 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"git": {
"tagName": "v${version}",
"commitMessage": "Release v${version}",
"changelog": "npx auto-changelog --stdout --commit-limit false -u --template ./changelog.hbs"
},
"github": {
"release": true
}
}
34 changes: 34 additions & 0 deletions changelog.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Changelog

{{#each releases}}
{{#if href}}
## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}}
{{else}}
## {{title}}{{#if tag}} - {{isoDate}}{{/if}}
{{/if}}

{{#if summary}}
{{summary}}
{{/if}}

{{#if merges}}
### Merged

{{#each merges}}
- {{message}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}
{{/each}}
{{/if}}

{{#if fixes}}
### Fixed

{{#each fixes}}
- {{commit.subject}}{{#each fixes}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}{{/each}}
{{/each}}
{{/if}}

{{#commit-list commits heading='### Commits'}}
- {{#if breaking}}**Breaking change:** {{/if}}{{subject}} {{#if href}}[`{{shorthash}}`]({{href}}){{/if}}
{{/commit-list}}

{{/each}}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"lint": "yarn lint:basic '{example/,}src/**/*.{ts,tsx}'",
"format": "yarn prettier && yarn lint",
"test": "yarn lint",
"release": "release-it",
"watch:example": "webpack-dev-server --config ./example/webpack.config.example.js --content-base website",
"build:example": "webpack --config ./example/webpack.config.example.js --mode production"
},
Expand Down Expand Up @@ -95,6 +96,7 @@
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"release-it": "^12.6.1",
"rimraf": "^3.0.2",
"typescript": "^3.8.2",
"webpack": "^4.41.6",
Expand Down
Loading

0 comments on commit 2a52e09

Please sign in to comment.