Skip to content
Success

Changes

Summary

  1. feat(scripts/flow/build): add feature branch prerelease support to (commit: cc7cfb7) (details)
Commit cc7cfb78431da141c1aaebf0040f9ccf186f4eeb by noreply
feat(scripts/flow/build): add feature branch prerelease support to versioning strategy (#3696)

This pull request adds support for feature branch prerelease versioning
in the build versioning strategy. Now, if a commit is on a feature
branch, the computed version and tag will reflect the feature name,
improving clarity and traceability for feature branch builds. The
changes are documented, tested, and implemented in the core logic.

**Feature branch versioning support:**

* Updated `versioning-strategy.md` to document the new feature branch
prerelease versioning scheme in the mapping table.
* Added logic to `versioning-strategy.ts` to detect feature branches and
generate version/tag strings using the feature name, e.g.,
`v9.0.0-feature.fts`.

**Test coverage:**

* Added new test cases in `versioning-strategy.test.ts` for feature
branch beta and alpha prerelease scenarios to ensure correct behavior.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(commit: cc7cfb7)
The file was modifiedscripts/flow/build/versioning-strategy.ts (diff)
The file was modifiedscripts/flow/build/versioning-strategy.test.ts (diff)
The file was modifiedscripts/flow/build/versioning-strategy.md (diff)