chore: update workflows for release and version bump #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's Changed:
yarn build
will now automatically update the schema if any changes have been made that will impact it. Not all changes will. This is accomplished by adding the existing commandyarn update-schema
into thepre-compile
step that is run withinyarn build
. It is also run in therelease
step to check for any unintentional changes and will fail the release if uncommitted changes are found (one intentional exception is listed below).bump()
will check for any updates to the schema (generated bypre-compile
). If there are any, it will update the minimum major version to release by a full major version based off the latest tag in the repository. If there are no changes to the schema, no updates will be made. This is accomplished by settingbump()
as the value forminMajorVersion
. If there are no changes to the schema, this field will remain undefined but if there are, it will increment the version. This change will not be committed and will be removed once the release has completed, similarly to howunbump
works inprojen
yarn pre-release
runsupdate-schema
anddefault
. Runningdefault
afterupdate-schema
accomplishes all of the above and re-synthesizes thetasks.json
file with the new major version so that therelease
command will run on the updated task definition.Any uncommitted changes other than the
minMajorVersion
update will cause therelease
command to fail.