Publish changes to a Magikcraft World

When you have made changes to a world, you need to do three things:

  1. Update the package version.
  2. Commit the changes to GitHub.
  3. Publish a new package to the registry.

1. Update the package version:

Edit the 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 1.2.6 to 2.0.0.

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: 1.1.18 to 1.2.0.

If it is a patch release - cosmetic or world mechanics fix, then increment z - for example, 3.2.15 to 3.2.16.

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:

npm publish