Skip to content

Commit

Permalink
feat: make releasing easier (#93)
Browse files Browse the repository at this point in the history
* feat: make releasing easier

* fix: add missing script
  • Loading branch information
domeq committed Mar 18, 2022
1 parent 2a10d92 commit b3e8324
Show file tree
Hide file tree
Showing 7 changed files with 2,983 additions and 54 deletions.
19 changes: 0 additions & 19 deletions .github/release-drafter.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/release-draft.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .husky/commit-msg
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
38 changes: 38 additions & 0 deletions .release-it.js
@@ -0,0 +1,38 @@
module.exports = {
plugins: {
'@release-it/conventional-changelog': {
preset: {
name: 'conventionalcommits',
types: [
{ type: 'feat', section: 'Features' },
{ type: 'feature', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'perf', section: 'Performance Improvements' },
{ type: 'revert', section: 'Reverts' },
{ type: 'docs', section: 'Documentation' },
{ type: 'style', section: 'Styles' },
{ type: 'chore', section: 'Miscellaneous Chores' },
{ type: 'refactor', section: 'Code Refactoring' },
{ type: 'test', section: 'Tests' },
{ type: 'build', section: 'Build System' },
{ type: 'ci', section: 'Continuous Integration' },
{ type: 'config', section: 'Configuration changes' },
],
},
infile: 'CHANGELOG.md',
},
},
git: {
requireCleanWorkingDir: true,
requireBranch: 'main',
commitMessage: 'chore: release ${version} \n\n${changelog}',
tagName: 'v${version}',
},
npm: {
publish: false,
},
github: {
release: true,
tokenRef: 'GITHUB_COM_TOKEN',
},
};
12 changes: 12 additions & 0 deletions commitlint.config.js
@@ -0,0 +1,12 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'body-max-line-length': [2, 'always', Infinity],
'footer-max-line-length': [2, 'always', Infinity],
'type-enum': [
2,
'always',
['build', 'chore', 'ci', 'config', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test'],
],
},
};

0 comments on commit b3e8324

Please sign in to comment.