bumping the version doesn't execute npm preversion hook #22045
Replies: 1 comment
-
The bot updates the I will leave this open as a feature request because I have some ideas about how to one day achieve this (basically having an option of cloning and isolating repositories like a CI system does), but it's definitely not a short term thing. The earliest it could be available to you in the medium term is if you run your own bot, because then obviously the security concerns go away. |
Beta Was this translation helpful? Give feedback.
-
This is a:
I'm using:
Please describe the issue:
I have configured a
preversion
script in mypackage.json
to run (tests and generate files) when bumping my version, so that generate files are updated and can be part of the same commit.In my
renovate.json
I have configured"bumpVersion": "patch"
since a check for a PR fails if the version has not been changed compared to master.When the bot creates a PR the version is correctly bumped, but the generated files (they can change when a dependency is updated) didn't change.
What would be the correct way to ensure that the
preversion
hook is executed when Renovate files a PR?Beta Was this translation helpful? Give feedback.
All reactions