Skip to content

Commit

Permalink
chore(release): trying another release sol
Browse files Browse the repository at this point in the history
  • Loading branch information
dsebastien committed Oct 12, 2024
1 parent 5ade054 commit fc0a6c3
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 731 deletions.
27 changes: 4 additions & 23 deletions .release-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const releaseItConfig = {
verbose: false,
'disable-metrics': true,
git: {
changelog: '',
requireCleanWorkingDir: true,
addUntrackedFiles: false,
requireBranch: false,
Expand All @@ -22,6 +23,8 @@ const releaseItConfig = {
pushRepo: 'origin',
},
github: {
changelog:
'npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/main/templates/changelog-compact.hbs',
release: true,
releaseName: 'Release ${version}',
releaseNotes: null,
Expand All @@ -36,32 +39,10 @@ const releaseItConfig = {
},
hooks: {
'before:init': [],
'after:bump': [],
'after:bump': ['npx auto-changelog -p'],
'after:git:release': [],
'after:release': 'echo Successfully released ${name} v${version} to ${repo.repository}.',
},
plugins: {
'@release-it/conventional-changelog': {
infile: 'CHANGELOG.md',
header: '# Changelog',
preset: {
name: 'angular',
types: [
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'docs', section: 'Documentation' },
{ type: 'style', section: 'Styles' },
{ type: 'refactor', section: 'Refactor' },
{ type: 'perf', section: 'Performance' },
{ type: 'test', hidden: true },
{ type: 'build', section: 'Build System' },
{ type: 'ci', section: 'CI' },
{ type: 'chore', hidden: true },
{ type: 'revert', section: 'Reverts' },
],
},
},
},
};

module.exports = releaseItConfig;
Loading

0 comments on commit fc0a6c3

Please sign in to comment.