@abhijit945org/try-semantic-versioning 中文文档教程

发布于 5年前 浏览 21 项目主页 更新于 3年前

try-semantic-versioning

构建状态npm 最新版本semantic-releaseLicense

使用 ESLint 类型提交格式测试语义版本控制

- Fix - for a bug fix.
- Update - either for a backwards-compatible enhancement or for a rule change that adds reported problems.
- New - implemented a new feature.
- Breaking - for a backwards-incompatible enhancement or feature.
- Docs - changes to documentation only.
- Build - changes to build process only.
- Upgrade - for a dependency upgrade.
- Chore - for refactoring, adding tests, etc. (anything that isn’t user-facing).

:https://eslint.org/docs/developer-guide/contributing/pull-requests#step2这应该匹配:https:// github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js

    {"tag": "Breaking", "release": "major"},
    {"tag": "Fix", "release": "patch"},
    {"tag": "New", "release": "minor"},
    {"tag": "Update", "release": "minor"},
    {"tag": "Docs", "release": "patch"},
    {"tag": "Build", "release": "patch"},
    {"tag": "Upgrade", "release": "patch"},
    {"tag": "Chore", "release": "patch"}
    {"tag": "Revert", "release": "patch"}

try-semantic-versioning

Build Statusnpm latest versionsemantic-releaseLicense

Test semantic versioning with ESLint type commit format: https://eslint.org/docs/developer-guide/contributing/pull-requests#step2

- Fix - for a bug fix.
- Update - either for a backwards-compatible enhancement or for a rule change that adds reported problems.
- New - implemented a new feature.
- Breaking - for a backwards-incompatible enhancement or feature.
- Docs - changes to documentation only.
- Build - changes to build process only.
- Upgrade - for a dependency upgrade.
- Chore - for refactoring, adding tests, etc. (anything that isn’t user-facing).

This should match with: https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js

    {"tag": "Breaking", "release": "major"},
    {"tag": "Fix", "release": "patch"},
    {"tag": "New", "release": "minor"},
    {"tag": "Update", "release": "minor"},
    {"tag": "Docs", "release": "patch"},
    {"tag": "Build", "release": "patch"},
    {"tag": "Upgrade", "release": "patch"},
    {"tag": "Chore", "release": "patch"}
    {"tag": "Revert", "release": "patch"}
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文