Skip to content

Commit a230c0d

Browse files
committed
ci: switch from semantic-release to release-it to manage publishing
1 parent b4b0c63 commit a230c0d

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ package-lock.json
77
.eslintcache
88
/lcov.info
99
/.nyc_output
10+
/.env

package.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"test": "npm run lint && npm run test:js",
1313
"test:js": "mocha --bail --recursive",
1414
"test:coverage": "nyc --reporter=html --reporter=lcov mocha -- --recursive",
15-
"release": "semantic-release",
15+
"release": "release-it",
1616
"cleanup": "rm -rf ./.nyc_output ./coverage ./.eslintcache"
1717
},
1818
"bin": {
@@ -44,6 +44,7 @@
4444
"yargs": "^16.2.0"
4545
},
4646
"devDependencies": {
47+
"@release-it/conventional-changelog": "^6.0.0",
4748
"@types/yargs": "^17.0.10",
4849
"chai": "^4.1.2",
4950
"eslint": "^8.30.0",
@@ -55,8 +56,8 @@
5556
"mocha": "^10.0.0",
5657
"nyc": "^15.1.0",
5758
"prettier": "2.8.1",
58-
"rimraf": "^5.0.1",
59-
"semantic-release": "^19.0.3"
59+
"release-it": "^15.11.0",
60+
"rimraf": "^5.0.1"
6061
},
6162
"engines": {
6263
"node": ">=14"
@@ -65,5 +66,19 @@
6566
"volta": {
6667
"node": "14.17.3",
6768
"npm": "7.18.1"
69+
},
70+
"release-it": {
71+
"plugins": {
72+
"@release-it/conventional-changelog": {
73+
"preset": "conventionalcommits",
74+
"infile": "CHANGELOG.md"
75+
}
76+
},
77+
"git": {
78+
"commitMessage": "chore: release v${version}"
79+
},
80+
"github": {
81+
"release": true
82+
}
6883
}
6984
}

0 commit comments

Comments
 (0)