I would like to bump the package.json
version variable on every push:
0.1.0 => 0.1.1
(for example)
My project uses Yarn thus I stumbled across the following command:
yarn version --patch --no-git-tag-version
This does indeed bump the version how I expect, but only affects the local cached package.json
file and not the package.json
file on the actual repository:
My question is therefore, how can I bump the package.json
version variable on the actual GitLab repository through CI/CD pipelines?