Skip to content

Commit

Permalink
release-it configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jackahl committed Dec 6, 2023
1 parent 1fa4ee6 commit c732ce6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions release-it.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const fs = require('fs');

module.exports = {
npm: {
publish: true,
},

hooks: {
'after:bump':
'pipx run towncrier build --draft --yes --version ${version} > .changelog.draft && pipx run towncrier build --yes --version ${version}',
'after:release': 'rm .changelog.draft',
},
git: {
changelog: 'pipx run towncrier build --draft --yes --version 0.0.0',
requireUpstream: false,
requireCleanWorkingDir: false,
commitMessage: 'Release ${version}',
tagName: '${version}',
tagAnnotation: 'Release ${version}',
},
github: {
release: true,
releaseName: '${version}',
releaseNotes: 'cat .changelog.draft',
},
};

0 comments on commit c732ce6

Please sign in to comment.