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.
Change description
Similar to magicbell/magicbell-swift#39 this PR adds tooling around managing change sets, by employing https://github.com/changesets/changesets
The source of truth for the project version now relies in
package.json
and is propagated via a script to all other places (Readme.md
, Gradle sources).I also imported the last changeset from the current version 2.0.0 as a baseline and added pending changesets for work that was done in #38 and that will go out in a major release.
A few things went into this to make it work:
@changeset
dependenciesyarn changeset
that also calls theupdate-version.ts
script to update the version accross the repo.package.json
Test Plan
Check out this branch, create an example changeset via
yarn changeset
oryarn changeset add
. Bump the version viayarn changeset version
. The version should be updated inpackage.json
,Readme.md
as wellgradle-mvn-publish.gradle
.Type of Change