Skip to content

Multiple versioned files

Sometimes you have a package that has multiple files which need to be versioned together. This is why the versioned_files attribute of the [package] section in config is an array.

Start by creating a knope.toml file if you don’t already have one:

Terminal window
knope --generate

Then, edit the versioned_files attribute of the [package] section to add additional versioned files:

[package]
versioned_files = ["Cargo.toml", "a_dir/package.json", "some_python/pyproject.toml", "and_also/go.mod"]

Now, releases will update the version of all those files together.