首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >语义发布不会在需要的分支上生成发布

语义发布不会在需要的分支上生成发布
EN

Stack Overflow用户
提问于 2020-03-06 09:14:11
回答 1查看 424关注 0票数 1

我正在使用语义租借库,下面是我的release.config.js:

代码语言:javascript
复制
require('dotenv').config();

module.exports = {
  branch: 'rel',
  dryRun: false,
  debug: true,
  repositoryUrl: 'https://github.xxx.com/xxx/backend',
  githubUrl: 'https://github.ibm.com/',
  githubApiPathPrefix: '/api/v3',
  verifyConditions: ['@semantic-release/github', '@semantic-release/changelog'],
  verifyRelease: [],
  publish: ['@semantic-release/github'],
  prepare: ['@semantic-release/changelog'],
  success: ['@semantic-release/github'],
  generateNotes: ['@semantic-release/release-notes-generator'],
  fail: ['@semantic-release/github'],
  plugins: [
    '@semantic-release/commit-analyzer',
    ['@semantic-release/changelog', {
      changelogFile: 'docs/CHANGELOG.md',
    }],
    ['@semantic-release/github', {

    }],
  ],
  preset: 'angular',
};

正如您所看到的,我将rel分支设置为一个分支来生成语义发布,它工作得很好,但只要我将上面的

代码语言:javascript
复制
   require('dotenv').config();
    module.exports = {
      branches: ['(rel|release|Relite)?(-[0-9]\.[0-9]\.[0-9]+)','rel'],
      ...

为了生成任何分支名称的版本,如: rel-1.0.0或release-1.3.4或rel。例如,在rel-1.0.2中,我收到一条消息,说语义释放被设置为master,所以它不会生成释放

代码语言:javascript
复制
This test run was triggered on the branch rel-1.0.0, while semantic-release is configured to only publish from master, therefore a new version won’t be published.

有人能帮上忙吗?

EN

回答 1

Stack Overflow用户

发布于 2021-05-22 00:13:29

在再次测试之前,尝试在包含您的发布配置的文件上提交更改。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60556245

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档