bumper icon indicating copy to clipboard operation
bumper copied to clipboard

How to update multiple files?

Open muuvmuuv opened this issue 5 months ago • 0 comments

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"
				}
			]
		}
	}
}

muuvmuuv avatar Sep 24 '25 12:09 muuvmuuv