Skip to content

Commit

Permalink
✨ feat: add commitTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
gleisonkz committed Apr 20, 2022
1 parent 0dd2c0d commit 24fe3df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fs = require('fs');
const dateFormat = require('dateformat');

const template = path.resolve(__dirname, 'release-notes.hbs');
// const commitTemplate = path.resolve(__dirname, 'commit-template.hbs');
const commitTemplate = path.resolve(__dirname, 'commit-template.hbs');

module.exports = {
branches: ['main', 'next'],
Expand All @@ -18,6 +18,7 @@ module.exports = {
},
releaseNotes: {
template: fs.readFileSync(template, 'utf8'),
commitTemplate: fs.readFileSync(commitTemplate, 'utf8'),
helpers: {
datetime: function (format = 'UTC:yyyy-mm-dd') {
return dateFormat(new Date(), format);
Expand All @@ -33,6 +34,12 @@ module.exports = {
],
'@semantic-release/github',
'@semantic-release/npm',
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md']
}
],
[
'@semantic-release/changelog',
{
Expand Down

0 comments on commit 24fe3df

Please sign in to comment.