The getPackagesToRelease()
util picks wrong version when using pre-releases
#10583
Labels
package:dev
squad:platform
Issue to be handled by the Platform team.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
To avoid going into details on how release tools work, it's enough to say that new versions are retrieved from the changelog. Hence, the release starts with preparing the changelog, then publishing packages.
Let's consider the following changelog:
When executing a task for bumping versions, invalid versions are suggested for packages in a mono-repository (
packages/*
).✔️ Expected result
The pre-release suffix should be picked properly.
❌ Actual result
Unfortunately, only
MAJOR.MINOR.PATCH
parts are read.❓ Possible solution
https://github.com/ckeditor/ckeditor5-dev/blob/079033487ae1ffa98be9e6969a5a1b115439b71d/packages/ckeditor5-dev-env/lib/release-tools/utils/getpackagestorelease.js#L80-L92
Created RegExp picks only numbers and dots. Allowing for letters resolves the problem.
The text was updated successfully, but these errors were encountered: