For releasing a new version on npm Run npm version with needed update level, i.e. npm version patch Run npm publish, it will run tests, build lib and publish it to npm