mgacy/swift-version-file-plugin
The VersionFilePlugin is a Swift Package Manager command plugin that supports maintaining a
Usage
Adding the Plugin as a Dependency
To use the VersionFilePlugin with your package, first add it as a dependency:
let package = Package(
// name, platforms, products, etc.
dependencies: [
// other dependencies
.package(url: "https://github.com/mgacy/swift-version-file-plugin", from: "0.2.1"),
],
targets: [
// targets
]
)Swift 5.6 is required in order to run the plugin.
Creating a Version File
Create the version file with a valid version number:
swift package --allow-writing-to-package-directory version-file --create <version number>Bumping the Version Number
Update the file by invoking the plugin with a valid release type (one of: major | minor | patch | release | prerel):
swift package --allow-writing-to-package-directory version-file --bump <release type>Acknowledgments
Package Metadata
Repository: mgacy/swift-version-file-plugin
Default branch: main
README: README.md