语义发布配置为仅从主发布
Posted
技术标签:
【中文标题】语义发布配置为仅从主发布【英文标题】:semantic-release is configured to only publish from master 【发布时间】:2020-07-09 02:46:32 【问题描述】:[16:07:15] [语义发布] › ℹ 运行语义发布版本 17.0.4 [16:07:18] [semantic-release] › ✔ 从“@semantic-release/npm”加载插件“verifyConditions” [16:07:19] [semantic-release] › ✔ 从“@semantic-release/git”加载插件“verifyConditions” [16:07:19] [semantic-release] › ✔ 从“@semantic-release/commit-analyzer”加载插件“analyzeCommits” [16:07:19] [semantic-release] › ✔ 从“@semantic-release/release-notes-generator”加载插件“generateNotes” [16:07:19] [semantic-release] › ✔ 从“@semantic-release/changelog”加载插件“prepare” [16:07:19] [semantic-release] › ✔ 从“@semantic-release/npm”加载插件“prepare” [16:07:19] [semantic-release] › ✔ 从“@semantic-release/git”加载插件“prepare” [16:07:19] [语义发布] › ✔ 从“@semantic-release/npm”加载插件“发布” [16:07:20] [语义发布] › ✔ 从“@semantic-release/gitlab”加载插件“发布” [16:07:20] [semantic-release] › ✔ 从“@semantic-release/npm”加载插件“addChannel” [16:07:20] [semantic-release] › ✔ 从“@semantic-release/github”加载插件“addChannel” [16:07:27] [semantic-release] › ℹ 本次测试运行是在分支开发上触发的,而语义发布配置为仅从 master 发布,因此不会发布新版本。
在 .releaserc.js 上
module.exports =
branch: 'development',
【问题讨论】:
你忘记写/问问题了。 【参考方案1】:正确的选项是branches
。见https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#branches
【讨论】:
以上是关于语义发布配置为仅从主发布的主要内容,如果未能解决你的问题,请参考以下文章
我们会为仅从缓存中读取(Cloud FireStore)支付(成本)吗? [复制]