Adds np [npm publish] function.