-
Notifications
You must be signed in to change notification settings - Fork 207
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
Question: How to incorporate npm scripts into release process #1186
Comments
There are two methods:
This would work but you would lose out on
You're right! The following would run lint right before the changelog is commited and stage the files {
"plugins": [["exec", { "beforeCommitChangelog": "yarn lint --fix && git add ." }]]
} Or if you want a separate commit for the lint fixes {
"plugins": [["exec", { "afterAddToChangelog": "yarn lint --fix && git add . && git commit -m 'lint fixes'" }]]
}
Is this what you're trying to do or is it just an example. IDK if I would recommend putting linting and testing into auto. In my opinion your CI should run those separately so it fails long before it gets to using auto. |
Thank you! Yea the problem I was running into was when auto updated the changelog it would use different styling which caused my linting to fail for every build downstream. So my thought was why not just fix the linting for the commits that auto creates during the process? |
the easiest way might be to just ignore linting for |
True! Here is the list:
Out of all of these, i think 3 could be a PR, but im unsure about the rest. |
|
I wouldnt worry to much over it. Besides the small adjustment for 3, and maybe 1. The rest could just opinionated. |
@jdalrymple Where does |
I think i found the problem. I was making commits like: "Linting [skip-ci]", which resulted in this in the changelog:
I think this ones on me lol 😅 I was trying to skip certain commits from the changelog, lol i failed. |
Thanks for the response! #1246 should address |
Description
For example, when auto updates the changelog etc, is it possible to trigger a linting fix script? This would normally be done by husky or lint-staged locally.
Describe the solution you'd like
This probably could be done through the exec plugin, I'm just not sure how exactly, or which hook
Describe alternatives you've considered
Could call each of the commands in the shipit process separately and call the npm script in between?
The text was updated successfully, but these errors were encountered: