$ yarn release
This builds the tool, cuts a release, and copies the distributable artefacts to dist
.
When cutting the release, it uses the standard-version workflow.
The release is then ready to be published:
$ git push --follow-tags origin master
This pushes branch master
and the v{x}.{y}.{z}
tag to the GitHub repository, thus triggering a build on Circle CI.
Circle CI will checkout the Git tag, build from sources (again), and automatically publish to the npm registry.
If neccessary, distributable artefacts can be created and published by hand:
$ yarn pack dist
$ npm publish dist/<name-x.y.z>.tgz