npm-发布-git npm publish对npm注册表起作用或应该起作用,除了目标是git存储库本身。 安装 npm install --save-dev git://github.com/andreineculau/npm-publish-git.git 用法 npm version patch # tag v1.0.1 created node_modules/.bin/npm-publish-git # tag v1.0.1-src created, pointing to the v1.0.1 commit above # tag v1.0.1 updated (=moved)