Closed
Description
Describe the bug
When I try to use an "uncommon" manifest name, I have an error.
The manifest here is a valid json file, and the "normal" name (aka manifest.json
) works. I use -beta
for beta release on a specific workflow.
My config is :
"scripts": {
"beta": "commit-and-tag-version --prerelease --tag-build beta",
"community": "commit-and-tag-version --packageFiles package.json --bumpFiles manifest-beta.json"
},
"commit-and-tag-version": {
"t": "",
"bumpFiles": [
{
"filename": "manifest-beta.json",
"type": "json"
},
{
"filename": "package.json",
"type": "json"
}]}
Current behavior
Actually, the manifest-beta
is not updated and skipped.
Log :
Unable to obtain updater for: "manifest-beta.json"
- Error: Unsupported file (manifest-beta.json) provided for bumping.
Please specify the updater `type` or use a custom `updater`.
- Skipping...
Expected behavior
Should be updated as the manifest.
Environment
commit-and-tag-version
version(s): [e.g. v6.0.0, v8.0.0, master] : 10.0.1- Node/npm version: [e.g. Node 10/npm 6]: v16.13.2 / 8.5.5
- OS: [e.g. OSX 10.13.4, Windows 10] Windows 11
Possible Solution
- get type based on
.json
- Possibility to add type directly in CLI
- regex on "normal" name, and include every file with
manifest.json
in it. As\S*manifest\S*\.json$
Additional context
My goal is to separate release of manifest-beta
and manifest
but update manifest-beta
when the manifest is updated.