I have a variables, which returns values from json:
$version = (Get-Content 'package.json' | ConvertFrom-Json).version
This value always goes in x.x.x format. It can be either 0.0.3 or 1.123.23 value.
My question is - how to increase the only patch value? E.g. I need to have 0.0.4 or 1.123.24 output values after transform.