Skip to content

Commit

Permalink
feat: add shared release-it config
Browse files Browse the repository at this point in the history
  • Loading branch information
Drapegnik committed Nov 5, 2021
1 parent 23db148 commit 31825d4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ dist:
cp README.md dist
cp -r src/* dist

.PHONY: build
build: dist

.PHONY:
release:
npm run release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ module.exports = getCommitlintConfig(czConfig);
4. add `.release-it.js`:

```js
module.exports = require('@realtby/.release-it');
module.exports = require('@realtby/codestyle/release-it');
```

5. add `.auto-changelog`:
Expand Down
17 changes: 17 additions & 0 deletions src/release-it.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
npm: false,
'only-version': true,
plugins: {
'@release-it/bumper': {
out: ['package.json', 'package-lock.json'],
},
},
git: {
changelog: 'auto-changelog --stdout --commit-limit false -u > /dev/null',
commitMessage: 'release(*): ${version}',
},
hooks: {
'after:bump': 'auto-changelog -p',
'after:release': 'echo "successfully released ${name} v${version} to ${repo.repository}"',
},
};

0 comments on commit 31825d4

Please sign in to comment.