Open
Description
description
When passing version/increase level as argument, to override the npm-version task behaviour, smooth-release still asks "Do you want to run the "npm-version" task and increase the version of your library? (y/n)".
This is can be confusing, since the user already passed the desired version as a parameter and does not want to determine it automatically. However, answering n
results in skipping some other important steps (package.json update, git tag, etc.).
A more intuitive behaviour could be:
- Run the "Compute release" task directly, without asking any confirmation, to show the release number that smooth-release automatically determines
- If the user passed a parameter to override this behaviour, ask confirmation to do it. For example: "Smooth-release computed 0.5.3 as the version to release, are you sure you want to override it with 0.6.0? (y/n)". If no parameter were passed, just ask for confirmation.
- Continue with the next steps as they are (package.json update, git tag, etc.)