This is mainly for myself since I always forget the correct steps.

  1. Make you code changes
  2. Commit the change
  3. Build the package, eg: npm build. This will compile everything and create a new dist folder.
  4. Create a new patch version: npm version patch (if not patch, use minor or major)
  5. Publish the new version to npm: npm publish. This will send the code to npm.
  6. Push the code to Github
  7. Create a new release (with the same version number as npm created) in Github.