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 files to bump commit #30

Open
Eomm opened this issue Aug 24, 2019 · 1 comment
Open

add files to bump commit #30

Eomm opened this issue Aug 24, 2019 · 1 comment

Comments

@Eomm
Copy link
Member

Eomm commented Aug 24, 2019

🚀 Feature Proposal

Right now this tool bump a new version and push the package.json in the repo:

await git.add('package.json')

If a user (like me 😇) have a prepublish or postpublish script that updates some files like the README.md will have a mismatch between the published version and the repository version (unless the user will commit the additional files to master by himself)

So it would be good to add a flag to let the user:

  • define a list of files to add to the bump commit
  • or simply run git add -A (since the publish command to check if the local repo is aligned with the remote branch).
  • or add a flag that will run git add -A

WDYT?

@mcollina
Copy link
Member

I'll prefer a flag that run git add -A or even better git add -u (only updated files).

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

No branches or pull requests

2 participants