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
[bumpversion]
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 =
{major}.{minor}.{patch}-{release}.{build}
{major}.{minor}.{patch}
tag_name = release-{new_version}
[bumpversion:part:release]
optional_value = final
first_value = alpha
values =
alpha
beta
rc
final
[bumpversion:file:.bumpversion.cfg]
search = current_version = {current_version}
[bumpversion:glob:Dockerfile*]
search = version="{current_version}"
replace = version="{new_version}"
[bumpversion:glob:chart/Chart.yaml]
search = appVersion: "{current_version}"
replace = appVersion: "{new_version}"
# Client # Client
The client service of the view server 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.
```bash
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 @@ ...@@ -5,7 +5,8 @@
"scripts": { "scripts": {
"build": "webpack -p", "build": "webpack -p",
"dev-server": "webpack-dev-server -d --content-base / --port ${PORT:-80}", "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": { "repository": {
"type": "git", "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