When you have made changes to a world, you need to do three things:
- Update the package version.
- Commit the changes to GitHub.
- Publish a new package to the registry.
1. Update the package version:
package.json file and increment the version number.
The version number uses semver (semantic versioning) - in the form of x.y.z.
Increment x and set y and z to 0 if it is a really big change - like a whole new version of the world that means we need to write new code and lesson plans. So, for example, you would go from
If it is a minor version change - different from a previous version, but with no impact on code or documentation - increment y and reset z. For example:
If it is a patch release - cosmetic or world mechanics fix, then increment z - for example,
2. Commit the changes to GitHub:
git add . git commit -m "Some comment on what changed" git push
3. Publish a new package:
Run the following command to publish a new package: