publish.sh: cleanup directories and npm publish