Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version for 2 files at the same time #90

Closed
astik opened this issue Oct 13, 2014 · 7 comments
Closed

Bump version for 2 files at the same time #90

astik opened this issue Oct 13, 2014 · 7 comments

Comments

@astik
Copy link
Contributor

astik commented Oct 13, 2014

Hi all,

It would be cool to have an option to update 2 JSON file's version. For example, we have a bower exposed project so that we have a package.json and a bower.json. Both need to be bumped while releasing. For now, only one of them can ='(
Some plugin like "grunt-update-json" take care of synchronizing bower.json with package.json, but to work correctly with grunt-release, it needs to be executed in between the firsst and second step :

>> bumped version to 1.0.1
  -- need to update bower.json !
>> staged package.json

The easier way would be to do "grunt-update-json" manually, then to do the "grunt-release" classic process. But for that to work, we need an option to bump multiple files.

Am I doing it wrong ? Would it be a needed feature ?

@astik
Copy link
Contributor Author

astik commented Oct 13, 2014

Of course, I can disable the bump step into my grunt-release and do it manually, but then I'll have to commit manually also =/

@kimmobrunfeldt
Copy link

Exactly what I would need too.

@astik
Copy link
Contributor Author

astik commented Oct 25, 2014

Cool to know that I'm not alone in this one. Now, hoping that @geddski will hear our call =P

@kimmobrunfeldt
Copy link

@stephanebachelier
Copy link

I ended up using release-it and its grunt plugin grunt-release-it, as
bumping multiple JSON files is already supported. And near every step is
configurable.
On 25 Oct 2014 11:26, "Kimmo Brunfeldt" notifications@github.com wrote:

I ended up whipping up my own release script
https://github.com/kimmobrunfeldt/progressbar.js/blob/master/scripts/release.js


Reply to this email directly or view it on GitHub
#90 (comment)
.

drublic referenced this issue in drublic/grunt-release Dec 2, 2014
@drublic drublic closed this as completed in e5c250a Dec 3, 2014
@drublic
Copy link
Collaborator

drublic commented Dec 3, 2014

It's in e5c250a.

@steveoh
Copy link

steveoh commented Dec 8, 2014

It's nice to be able to pump non json files. I like this approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants