Skip to content

Commit

Permalink
fix(release process): migrate configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Sep 19, 2019
1 parent 20aec1b commit 9fcd7d1
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 87 deletions.
42 changes: 42 additions & 0 deletions .releaserc.json
@@ -0,0 +1,42 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "HISTORY.md"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./updateVersion.sh ${nextRelease.version} ${options.branch} && ./scripts/generatedocs.sh && ./scripts/createdistribution.sh",
"publishCmd": "./scripts/uploaddistribution_test.sh && ./scripts/uploaddistribution_live.sh"
}
],
[
"@semantic-release/git",
{
"assets": [
"HISTORY.md",
"package.json",
"docs",
"hexonet/apiconnector/__init__.py",
"hexonet/apiconnector/apiclient.py"
]
}
],
[
"@semantic-release/github",
{
"assets": [
{
"label": "hexonet.apiconnector (tar.gz)",
"path": "dist/hexonet.apiconnector-${nextRelease.version}.tar.gz"
}
]
}
]
]
}
11 changes: 1 addition & 10 deletions .travis.yml
Expand Up @@ -3,18 +3,9 @@ dist: xenial
notifications:
email:
recipients:
- kschwarz@hexonet.net
- middleware@hexonet.net
on_success: never
on_failure: always
slack:
rooms:
secure: aOQtp4LspmuOoqhLU+e8TPV4OZljA233513ksPl3+c/4i2DfWwkgAIwENa7R8kMzE6p3moNH48p5Wr53KdioON/6AXUoUuJRZYgXIVzHxN1/ef0d0prBsJq6OzRuySv48ZF+aWrY/pyGOn9mQuYz/WiTX7li/V5aeb0JWYyr7QtiMxMYKsG1heYcV0JOa119Q3V1ELry4rxazp4jWsJxuCgUGzyIJYXgzLEF75rj00gQeiGEbpSpaIGTKZk36hX8vUKu0dN0MwycNnBkSPI8hn2oH9eEh0i0UEKkFdCxyIkMTiiMYq3eRlbxQvWFQJgBWhfSzaTTAWLZg81Ml61nS0srMiiUX0v57MSjOPDh6L1JXayUydVPleOoClOkgk+C6lUswVm1uV0mge4apyVOrNs0HidOwT3Ox/qGvr3lx4319NAHDaN0SGr+YxrV5L9RoLx3MIpCLwPNw3mMPea7HtVvn8rujEN6cajphu0mRWy1MM2A2HvkOCbiqQisoJgLbaG+68PheZxyf+tsrg+P54f3SjrtrbmccD4HkzqmxwJnN6pHL0S/VUOuGBAwUpR/KfMBbCvCGtI/12OGe0hsvBXuvTefZVeR1dQfTPT+cq08MVQN6PDwYhGqBUQujKrOfyVUxSQC/s+eZrjM4xYtKslqufa+h3OUNBZ5+/OMTK4=
on_success: always
on_failure: always
cache:
directories:
- "~/.npm"
- node_modules
python:
- '3.5'
- '3.6'
Expand Down
81 changes: 4 additions & 77 deletions package.json
Expand Up @@ -19,10 +19,6 @@
"name": "Kai Schwarz",
"email": "kschwarz@hexonet.net"
},
{
"name": "Anthony Schneider",
"url": "https://github.com/anthonyschn"
},
{
"name": "Tulasi Seelamkurthi",
"url": "https://github.com/tulsi91"
Expand All @@ -45,78 +41,9 @@
"application"
],
"devDependencies": {
"@semantic-release/changelog": "^3.0.4",
"@semantic-release/commit-analyzer": "^6.2.0",
"@semantic-release/exec": "^3.3.6",
"@semantic-release/git": "^7.0.16",
"@semantic-release/github": "^5.4.3",
"conventional-changelog": "^3.1.10",
"@semantic-release/changelog": "3.0.4",
"@semantic-release/exec": "3.3.6",
"@semantic-release/git": "7.0.16",
"semantic-release": "^15.13.12"
},
"dependencies": {},
"release": {
"debug": false,
"analyzeCommits": {
"preset": "angular"
},
"generateNotes": {
"preset": "angular"
},
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/git",
"@semantic-release/github"
],
"prepare": [
{
"path": "@semantic-release/changelog",
"changelogFile": "HISTORY.md"
},
{
"path": "@semantic-release/exec",
"cmd": "./updateVersion.sh ${nextRelease.version} ${options.branch}"
},
{
"path": "@semantic-release/exec",
"cmd": "./scripts/generatedocs.sh"
},
{
"path": "@semantic-release/exec",
"cmd": "./scripts/createdistribution.sh"
},
{
"path": "@semantic-release/git",
"assets": [
"HISTORY.md",
"package.json",
"docs",
"hexonet/apiconnector/__init__.py",
"hexonet/apiconnector/apiclient.py"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"publish": [
{
"path": "@semantic-release/github",
"assets": [
{
"label": "hexonet.apiconnector (tar.gz)",
"path": "dist/hexonet.apiconnector-${nextRelease.version}.tar.gz"
}
]
},
{
"path": "@semantic-release/exec",
"cmd": "./scripts/uploaddistribution_test.sh"
},
{
"path": "@semantic-release/exec",
"cmd": "./scripts/uploaddistribution_live.sh"
}
]
},
"scripts": {
"semantic-release": "semantic-release"
}
}
}

0 comments on commit 9fcd7d1

Please sign in to comment.