Skip to content

Commit 88e2c08

Browse files
committed
fix(semrelease): Provide proper git message for semantic release
1 parent ca54907 commit 88e2c08

File tree

3 files changed

+35
-25
lines changed

3 files changed

+35
-25
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[bumpversion]
22
current_version = 4.0.3
33
commit = True
4-
message = [skip ci] Bump version: {current_version} -> {new_version}
54

65
[bumpversion:file:ibm_watson/version.py]
76
search = __version__ = '{current_version}'

.releaserc

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
{
2-
"branch": "master",
3-
"verifyConditions": ["@semantic-release/changelog", "@semantic-release/github"],
42
"debug": true,
5-
"prepare": [
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
66
"@semantic-release/changelog",
7-
"@semantic-release/git",
8-
{
9-
"path": "@semantic-release/exec",
10-
"cmd": "bumpversion --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch"
11-
}
12-
],
13-
"publish": [
14-
{
15-
"path": "@semantic-release/github"
16-
}
7+
[
8+
"@semantic-release/exec",
9+
{
10+
"prepareCmd": "bumpversion --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch"
11+
}
12+
],
13+
[
14+
"@semantic-release/git",
15+
{
16+
"message": "chore(release): ${nextRelease.version} release notes\n\n${nextRelease.notes}"
17+
}
18+
],
19+
"@semantic-release/github"
1720
]
18-
}
21+
}

.travis.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
11
language: python
2+
23
matrix:
34
include:
45
- python: 3.5
56
- python: 3.6
67
- python: 3.7
78
- python: 3.8
8-
cache: pip
9+
10+
cache: pip3
11+
912
before_install:
1013
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_cebf25e6c525_key
1114
-iv $encrypted_cebf25e6c525_iv -in .env.enc -out .env -d || true'
1215
- npm install npm@latest -g
16+
1317
install:
14-
- pip install tox-travis
18+
- pip3 install tox-travis
19+
1520
before_script:
16-
- sudo apt-get update
17-
- pip install pypandoc
18-
- sudo apt-get install pandoc
19-
- pip install -r requirements.txt
20-
- pip install -r requirements-dev.txt
21-
- pip install --editable .
21+
- pip3 install -r requirements.txt
22+
- pip3 install -r requirements-dev.txt
23+
- pip3 install --editable .
24+
2225
script:
23-
- pip install -U python-dotenv
26+
- pip3 install -U python-dotenv
2427
- tox
28+
2529
before_deploy:
26-
- pip install bumpversion
30+
- sudo apt-get update
31+
- pip3 install pypandoc
32+
- sudo apt-get install pandoc
33+
- pip3 install bumpversion
2734
- nvm install 12
2835
- npm install @semantic-release/changelog
2936
- npm install @semantic-release/exec
3037
- npm install @semantic-release/git
3138
- npm install @semantic-release/github
39+
3240
deploy:
3341
- provider: script
3442
script: docs/publish.sh

0 commit comments

Comments
 (0)