Skip to content

Commit f24ca80

Browse files
authored
Merge pull request #491 from simplabs/release-it
Add release-it configuration to simplify releases
2 parents 8242944 + 9955977 commit f24ca80

File tree

3 files changed

+1597
-45
lines changed

3 files changed

+1597
-45
lines changed

.release-it.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
plugins: {
3+
'release-it-lerna-changelog': {
4+
infile: 'CHANGELOG.md',
5+
},
6+
},
7+
git: {
8+
commitMessage: 'v${version}',
9+
tagName: 'v${version}',
10+
},
11+
github: {
12+
release: true,
13+
releaseName: 'v${version}',
14+
tokenRef: 'GITHUB_AUTH',
15+
},
16+
npm: {
17+
publish: false,
18+
},
19+
};

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"scripts": {
1717
"changelog": "lerna-changelog",
18+
"release": "release-it",
1819
"lint": "eslint . --cache",
1920
"test": "jest"
2021
},
@@ -36,7 +37,9 @@
3637
"eslint-plugin-prettier": "4.0.0",
3738
"jest": "27.5.1",
3839
"lerna-changelog": "2.2.0",
39-
"prettier": "2.6.2"
40+
"prettier": "2.6.2",
41+
"release-it": "^14.14.0",
42+
"release-it-lerna-changelog": "^4.0.1"
4043
},
4144
"engines": {
4245
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"

0 commit comments

Comments
 (0)