feat: 使用release-it优化了release工作流
This commit is contained in:
parent
2425daa464
commit
6eb374b3c3
|
@ -0,0 +1,24 @@
|
|||
module.exports = {
|
||||
git: {
|
||||
tagName: 'v${version}',
|
||||
commitMessage: 'release: v${version}',
|
||||
requireCleanWorkingDir: false,
|
||||
},
|
||||
hooks: {
|
||||
'after:bump': ['npm run build'],
|
||||
},
|
||||
npm: {
|
||||
publish: false,
|
||||
},
|
||||
prompt: {
|
||||
ghRelease: false,
|
||||
glRelease: false,
|
||||
publish: false,
|
||||
},
|
||||
plugins: {
|
||||
'@release-it/conventional-changelog': {
|
||||
preset: 'angular',
|
||||
infile: 'CHANGELOG.md',
|
||||
},
|
||||
},
|
||||
}
|
|
@ -20,7 +20,9 @@
|
|||
"prettier": "prettier --write --config .prettierrc.js \"src/**/*.{js,ts}\"",
|
||||
"test": "cross-env NODE_ENV=test jest --passWithNoTests --runInBand",
|
||||
"test-c": "cross-env NODE_ENV=test jest --coverage",
|
||||
"start": "concurrently \"npm run dev\" \"npm run example\" "
|
||||
"start": "concurrently \"npm run dev\" \"npm run example\" ",
|
||||
"release": "release-it",
|
||||
"release:dry": "release-it --dry-run"
|
||||
},
|
||||
"jest": {
|
||||
"testEnvironment": "node"
|
||||
|
@ -40,6 +42,7 @@
|
|||
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
|
||||
"@babel/plugin-transform-runtime": "^7.11.5",
|
||||
"@babel/preset-env": "^7.11.5",
|
||||
"@release-it/conventional-changelog": "^2.0.0",
|
||||
"@types/jest": "^25.2.1",
|
||||
"@types/jquery": "^3.3.38",
|
||||
"@types/lodash": "^4.14.150",
|
||||
|
@ -75,6 +78,7 @@
|
|||
"lint-staged": "^10.2.2",
|
||||
"postcss-loader": "^3.0.0",
|
||||
"prettier": "^2.0.5",
|
||||
"release-it": "^14.2.0",
|
||||
"style-loader": "^1.2.1",
|
||||
"ts-jest": "^25.4.0",
|
||||
"ts-loader": "^7.0.2",
|
||||
|
|
Loading…
Reference in New Issue