【发布时间】:2018-03-17 12:18:21
【问题描述】:
我想发布我管理的 NPM 包的一个版本。这是链接:https://github.com/dixeed/eslint-config。我推到 master,在我的 Travis 构建运行中没有任何错误,但它没有像预期的那样运行 npm run semantic-release pre && npm publish && npm run semantic-release post。如果您查看我的 git 历史记录,我已遵循 angularjs 提交消息格式。
您对可能发生的事情有任何线索吗?当我在本地计算机上运行 npm run semantic-release 时,它告诉我:
它想将版本升级到 2.0.0,但我不希望这样。它应该是 1.1.0。 BREAKING CHANGE 提交应该会触发第一个版本的版本提升,但它没有因此我手动完成。
顺便说一句,我的第一次发布也有问题。您应该如何使用 SR 发布您的第一个版本?即使我用这条消息写了一个提交:
feat(global): Add defaults, angularjs configuration
Create a base configuration and one for angularjs projects
BREAKING CHANGE: This is the first release of the plugin with base and angularjs configuration
它没有将版本升级到 1.0.0。您是否应该手动进行第一次发布以使语义发布正常工作?
【问题讨论】:
标签: node.js git npm semantic-versioning semantic-release