Argument --releaseAs [1.1.0]
is ignored if --skip.bump
is also used
#130
Labels
bug
Something isn't working
--releaseAs [1.1.0]
is ignored if --skip.bump
is also used
#130
Describe the bug
Running
commit-and-tag-version
with the option to skip thebump
step uses the current version inpackage.json
instead of using the version specified with the argumentreleaseAs
.Current behavior
Steps following bump (changelog, commit, tag) run with the current version in
package.json
.Expected behavior
Other steps (changelog, commit, tag) should run with the version specified with
releaseAs
.Environment
commit-and-tag-version
version(s): 12.2.0Possible Solution
In
bump.js
, the logic for determining thenewVersion
fromreleaseAs
(I think lines46
-62
) should be moved up to line35
, and the check forargs.skip.bump
should be moved to occur right after that, returning thereleaseAs
version if it exists.Additional context
Add any other context about the problem here. Or a screenshot if applicable
The text was updated successfully, but these errors were encountered: