I'm trying to find out how to correctly use npm version
with prepatch (also premajor or preminor) / preid options to increment the counter behind the suffix.
e.g.:
v.0.5.22
and want to append -rc
npm version prepatch --preid rc
v.0.5.23-rc.0
, fine so far.v.0.5.24-rc.0
,v.0.5.23-rc.1
insteadHow can I only increment the counter behind -rc.
and keep the patch number?
Or am I misunderstanding the purpose of prepatch / preid?
Alright, I'll answer my own question for future reference.
After having v.0.5.23-rc.0
the command to only bump the number behind the . has to be:
npm version prerelease
Then I would get v.0.5.23-rc.1
.