Generic JSON updater can't replace version in a string field #2244
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
release-please
version: 16.10.0 with release-please-action@v4Steps to reproduce
Result
Release Please overrides the content of each line:
Expected Result
Release Please should replace version in each line:
Fix
in
generic-json.ts
, the function return only version number:In order to replace version in a sting:
Note:
VERSION_REGEX
comes from Generic UpdaterThis is the same issue as 2205, but it was for YAML. A workaround was found by using the Generic Updater. However, it is not possible for JSON files because comments are not supported in this file format.
The text was updated successfully, but these errors were encountered: