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

Add some way to create release from the version in a package.json #1

Open
heff opened this issue Feb 19, 2014 · 6 comments
Open

Add some way to create release from the version in a package.json #1

heff opened this issue Feb 19, 2014 · 6 comments

Comments

@heff
Copy link
Owner

heff commented Feb 19, 2014

Right now there's no way to just read the package.json file and use what's in there. Coudl provide some way to say: chg release package.json, or something like it.

@Hypercubed
Copy link
Collaborator

Yes, would ne nice if you could just do npm version [major|minor|patch] and have chg update CHANGELOG as expected. Are you still working on this?

@mmcc
Copy link
Collaborator

mmcc commented Oct 20, 2015

We haven't done any work towards this specifically since we didn't go this route for Video.js. I still think this is really relevant, though, so any interest in putting together a PR for this?

@Hypercubed
Copy link
Collaborator

I added a -y flag to the release command, since chg release already reads package.json when no version is given.

By "we didn't go this route" does that mean you used something else for Video.js?

@mmcc
Copy link
Collaborator

mmcc commented Oct 21, 2015

Nah, I just meant we handled it differently with VJS, but we're still using chg.

@gkatsev
Copy link
Collaborator

gkatsev commented Oct 23, 2015

I'm not sure that it's possible to automatically bind into npm version but npm's scripts allow you to add pre and post version scripts. So, you could add chg into a postversion step to have it be done automatically. Or maybe even preversion.

@Hypercubed
Copy link
Collaborator

preversion is before the version number is bumped in package.json. version is after the bump. See https://docs.npmjs.com/cli/version .

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

4 participants