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

Lifecycle Message Corrupts Commit Message #886

Open
cutterbl opened this issue Feb 24, 2022 · 1 comment
Open

Lifecycle Message Corrupts Commit Message #886

cutterbl opened this issue Feb 24, 2022 · 1 comment
Labels

Comments

@cutterbl
Copy link

I have a precommit lifecycle script that generates a file and does a git add. My npm release script uses the -a flag to make sure that file is included in the tag. I notice that now the tag commit message is outputting the content of my lifecycle script, instead of the standard message format for the tag. What am I doing wrong here?

@TimothyJones
Copy link
Contributor

If your lifecycle script prints anything, it is used as the message. You can fix this by not printing anything during your lifecycle script.

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

No branches or pull requests

2 participants