bumper
bumper copied to clipboard
How to update multiple files?
I want to update my package.json and pyproject.toml files version property but it only updates the package.json. I tried as an array (see below) with and without package.json as in and out.
{
"git": {
"commitMessage": "Release v${version}",
"tagName": "v${version}",
"requireBranch": "main",
"requireCleanWorkingDir": true,
"push": false
},
"hooks": {
"before:init": ["pnpm check"],
"after:bump": "just freeze && git add requirements.txt"
},
"npm": {
"publish": false
},
"github": {
"release": false
},
"plugins": {
"@release-it/bumper": {
"out": [
"package.json",
{
"file": "pyproject.toml",
"path": "project.version",
"type": "text/toml"
}
]
}
}
}