Skip to content

Feature/release version management#1

Draft
LiamCottrell wants to merge 1 commit intoTerenceJefferies:masterfrom
LiamCottrell:feature/Release-Version-Management
Draft

Feature/release version management#1
LiamCottrell wants to merge 1 commit intoTerenceJefferies:masterfrom
LiamCottrell:feature/Release-Version-Management

Conversation

@LiamCottrell
Copy link

@LiamCottrell LiamCottrell commented Jun 28, 2020

Added a solution to allow the management of releases in the future with a lot of the manual changing of files removed.
The proposed solution does the following:
Makes use of the Conventional Commits standard for commits, which is a syntaxual standard to use when decorating your messages to add new feature/bugfixes etc.
We use the comitizen package to take the effort of writing these commits away so they can be generated for us, and the npx git-cz command can be used.
The addition of husky then is used as a commit hook to make sure the moderation of the Conventional Commits standard and prevents non-syntaxually correct commits.
Finally, the use of standard-version adds a new script that by calculation of features added and git history, it increments the package.json correctly with the changes and tags the release appropriately. It then also makes changes to the Changelog file for us with the features added with a given release.

comitizen added to allow ease of standardisation of commits with `npx
git-cz`. standard-version added to update package.json with version
depending on comit history `npm run release`. Husky added to add
validation hook to commits to make sure we are adhering to `conventional
commits` standard.
@TerenceJefferies TerenceJefferies self-requested a review June 28, 2020 13:46
@TerenceJefferies TerenceJefferies self-assigned this Jun 28, 2020
@TerenceJefferies
Copy link
Owner

@LiamCottrell Love the idea, before we merge can you create a contributing guide for the repo? Avoid having to look up what to do with all of this post-merge?

@LiamCottrell
Copy link
Author

I can do! I’ve noticed that I probably shouldn’t include the chore commit to tag the release at the feature branch level and this should be performed on master. I’ll make some amendments and give a contribute.md as part of the proposal

@LiamCottrell LiamCottrell force-pushed the feature/Release-Version-Management branch from 0e4d8a4 to ab7b184 Compare June 28, 2020 15:54
@LiamCottrell LiamCottrell marked this pull request as draft June 28, 2020 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development tools enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants