You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, grunt-bump is totally amazing! In my app we have both production and staging, we want to use grunt-bump to manage versions in both environments.
Currently I see that grunt-bump support only one environment, how can I overcome this?
Another question: I see that grunt-bump takes the latest version from package.json, If I have no version their, it doesn't work and I expect grunt-bump to take latest version from latest git tag.
The text was updated successfully, but these errors were encountered:
@yosiat Could you please describe in more detail what you would expect from grunt-bump in your case. Maybe you also could explain your development process step by step. How a software can have multiple version at one time is not clear to me.
Trying to get a semver number from the last git tag is a nice idea for an enhancement.
I think you're encountering the same issue that I am. When matching the version number, if the prereleaseName value does NOT appear in the version string, it won't match a prerelease version and will increment only the version. Here's an example of what happens currently:
The reason for this is the inclusion of the prereleaseName option value in the regular expression rather than generically matching any prereleaseName value found in a semantic version string.
My desired behavior, and what I think you're asking for, should be as follows:
You can work around the final bump by ensuring the prereleaseName matches 'rc' for final builds. The dev to rc transition has to be done by hand when branching for the release build.
OR
Use a custom regExp setting to avoid the exact matching of prereleaseName:
I think the default behavior should not include the prereleaseName in the regular expression allowing version matching to match any prerelease version. The semver API call handles transitions from dev to rc without incrementing any of the major, minor, patch values.
Hi,
First of all,
grunt-bump
is totally amazing! In my app we have both production and staging, we want to usegrunt-bump
to manage versions in both environments.Currently I see that
grunt-bump
support only one environment, how can I overcome this?Another question: I see that
grunt-bump
takes the latest version frompackage.json
, If I have no version their, it doesn't work and I expectgrunt-bump
to take latest version from latest git tag.The text was updated successfully, but these errors were encountered: