EOX GitLab Instance

Commit e936bb12 authored by Lubomir Doležal's avatar Lubomir Doležal
Browse files

add procedure to bump version

parent 254290a4
Pipeline #18226 passed with stages
in 2 minutes and 21 seconds
current_version = 2.0.0
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)\.(?P<build>\d+))?
serialize =
tag_name = release-{new_version}
optional_value = final
first_value = alpha
values =
search = current_version = {current_version}
search = version="{current_version}"
replace = version="{new_version}"
search = appVersion: "{current_version}"
replace = appVersion: "{new_version}"
# Client
The client service of the view server
## Increasing version
Because package-lock.json version also needs to be updated and we are using bump2version to increase versions which does not work well with multi-line search inside package-lock.json for unknown reason, a two commit procedure to bump the version is needed.
npm version --no-git-tag-version <version> # via a postversion command does 'git add' and 'git commit'
bump2version patch --new-version <version> # a proper bumpversion
......@@ -5,7 +5,8 @@
"scripts": {
"build": "webpack -p",
"dev-server": "webpack-dev-server -d --content-base / --port ${PORT:-80}",
"lint": "./node_modules/.bin/eslint src"
"lint": "./node_modules/.bin/eslint src",
"postversion": "git add package.json package-lock.json && git commit -mv$npm_package_version"
"repository": {
"type": "git",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment