Ability to run script before install #29254
Replies: 3 comments 2 replies
-
Another, albeit hacky, solution would be to use a combination of pnpm's So, adding something like |
Beta Was this translation helpful? Give feedback.
-
@mlahargou just a quick question, I'm a newbie with this tool, could you share me how did you enable renovate to run pnpm install, because using the base configuration {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"docker:pinDigests",
"npm:unpublishSafe",
"packages:jsTest",
"packages:jsUnitTest",
"packages:linters",
"packages:postcss",
"packages:react",
"packages:tslint",
"packages:vite",
"customManagers:dockerfileVersions",
"replacements:all",
":docker",
":npm"
]
} what it's happening is that PR are raised but pnpm-lock file is not updated and so when the pipeline run it fails because there is no matching with package.json libraries that renovate has updated. One of the options that I was thinking on was to run it in postUpgradeTasks as a command but from what I read from you this is something configured in another way? Regards |
Beta Was this translation helpful? Give feedback.
-
Closing as this seems like a duplicate of #8804 |
Beta Was this translation helpful? Give feedback.
-
Background:
We use syncpack to enforce certain rules about dependencies on our pnpm monorepo. We'd like to be able to run
syncpack fix-mismatches
after the dependencies have been updated but before renovate runspnpm install
.Currently, the only way to run arbitrary scripts is with
postUpgradeTasks
but those run after thepnpm install
. So, we have to runpnpm install
manually again:Basically, this is the current flow:
upgrade deps
->pnpm install
-> (pnpm syncpack fix-mismatches
->pnpm install
)but we would rather be able to:
upgrade deps
->pnpm syncpack fix-mismatches
->pnpm install
Possible solution:
Have a
preInstallTasks
option (very similar topostUpgradeTasks
) which just runs arbitrary scripts after the package.jsons have been updated but before the install happens.Relevant Logs:
Beta Was this translation helpful? Give feedback.
All reactions