mirror of
https://github.com/gotson/komga.git
synced 2025-12-26 10:24:04 +01:00
85 lines
2.1 KiB
JSON
85 lines
2.1 KiB
JSON
{
|
|
"dependencies": {
|
|
"@google/semantic-release-replace-plugin": "^1.0.2",
|
|
"@semantic-release/changelog": "^5.0.1",
|
|
"@semantic-release/exec": "^5.0.0",
|
|
"@semantic-release/git": "^9.0.0",
|
|
"is-ci": "^3.0.0",
|
|
"semantic-release": "^17.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^12.1.4",
|
|
"@commitlint/config-conventional": "^12.1.4",
|
|
"commitlint": "^12.1.4",
|
|
"husky": "^6.0.0",
|
|
"pinst": "^2.1.6"
|
|
},
|
|
"commitlint": {
|
|
"extends": [
|
|
"@commitlint/config-conventional"
|
|
]
|
|
},
|
|
"release": {
|
|
"plugins": [
|
|
"@semantic-release/commit-analyzer",
|
|
"@semantic-release/release-notes-generator",
|
|
"@semantic-release/changelog",
|
|
[
|
|
"@google/semantic-release-replace-plugin",
|
|
{
|
|
"replacements": [
|
|
{
|
|
"files": [
|
|
"gradle.properties"
|
|
],
|
|
"from": "version=.*",
|
|
"to": "version=${nextRelease.version}",
|
|
"results": [
|
|
{
|
|
"file": "gradle.properties",
|
|
"hasChanged": true,
|
|
"numMatches": 1,
|
|
"numReplacements": 1
|
|
}
|
|
],
|
|
"countMatches": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/exec",
|
|
{
|
|
"prepareCmd": "ci/prepare-release.sh ${nextRelease.version} ${nextRelease.channel}",
|
|
"publishCmd": "ci/publish-dockerhub.sh ${nextRelease.version} ${nextRelease.channel}"
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/git",
|
|
{
|
|
"assets": [
|
|
"gradle.properties",
|
|
"CHANGELOG.md",
|
|
"komga/docs/openapi.json"
|
|
]
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/github",
|
|
{
|
|
"assets": [
|
|
{
|
|
"path": "komga/build/libs/*.jar"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"scripts": {
|
|
"prepare": "is-ci || husky install",
|
|
"postinstall": "is-ci || husky install",
|
|
"prepublishOnly": "pinst --disable",
|
|
"postpublish": "pinst --enable"
|
|
}
|
|
}
|