-
Notifications
You must be signed in to change notification settings - Fork 8
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
corp-semantic-release
is forgetting to commit lock files
#64
Comments
yes, you are right. This is the line which adds the files: https://github.com/leonardoanalista/corp-semantic-release/blob/master/src/lib/addFilesAndCreateTag.js#L10 If you have a chance to right a PR let me know. Otherwise give me a few hours to be able to write a PR. |
That line could potentially be Code should add and commit Alternatively, a preferred solution would be identify if the project uses |
@leonardoanalista let's do a little bit of hashing out the details. You've identified one challenge and that is to try and identify if the consumer is using either I think one more challenge is to identify if they have set |
@leonardoanalista here's a rough snippet. I can submit a PR if you want too. Is this what you had in mind? code = shell.exec('git add package.json CHANGELOG.md').code;
if (shell.test('-f', 'package-lock.json')) {
code = shell.exec('git package-lock.json').code;
}
if (shell.test('-f', 'yarn.lock')) {
code = shell.exec('git yarn.lock').code;
} |
Maybe the first line can do what it was doing before:
Then have the 2 |
LOL. Good catch. |
|
@leonardoanalista do you have time to do this? I am getting pulled away from things right now. I"m sorry! |
Bblackwo made a good point. I m on holidays now and can’t look into details but I agree with him. |
NP. Thanks, @BBlackwo! |
@leonardoanalista any update on this? |
I have noticed that
corp-semantic-release
is not committing and pushing lock files. Is anyone else having this problem?The text was updated successfully, but these errors were encountered: