如何使用 Shivas/versioning-bundle 格式化版本号?

How to format version number using Shivas/versioning-bundle?

我是第一次使用 shivas/versionig-bundle,默认的起始版本号是 0.1.0,但我需要起始版本 1.0.0a

如何格式化版本号?

根据该包的默认自述文件,版本由以下因素决定:

  • VersionProvider (read the version from a VERSION file)

  • GitRepositoryProvider (git tag describe provider to automatically update the version by looking at git tags)

  • RevisionProvider (read the version from a REVISION file)

  • InitialVersionProvider (just returns the default initial version 0.1.0)

所以我想您可以 - 例如 - 添加一个 VERSION 文件。也许还有 RTFM。