Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --version Option + CI #7

Merged

Conversation

mgacy
Copy link
Collaborator

@mgacy mgacy commented Dec 3, 2023

Adds support for the --version option and CI support for maintaining this. My basic thought is that any development tool should accurately report its version to help users deal with breaking changes and maintenance of this should be automated.

This adds our swift-version-file-plugin Swift Package Manager command plugin as a dependency and uses that to maintain a Version.swift file supplying the value for Watcher.configuration.version.

It also adds a Prepare Release workflow to create a new PR for an updated version file on a release branch and a Tag Release workflow to create a new tag corresponding to Version.number when that PR is closed.

Finally, this adds a RELEASE document to explain this process and its motivation for future maintainers.

NOTE: I have tested this setup successfully on a personal repo and believe it should be compatible with this one's current settings, though some additional token management could be required.

@mgacy mgacy requested a review from jagreenwood December 3, 2023 21:33
Base automatically changed from refactor/release-prep/3-ci to refactor/release-prep/0-main December 4, 2023 16:10
@mgacy mgacy merged commit 19df257 into refactor/release-prep/0-main Dec 4, 2023
1 check passed
@mgacy mgacy deleted the refactor/release-prep/4-version-support branch December 4, 2023 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants