我正在使用语义租借库,下面是我的release.config.js:
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分支设置为一个分支来生成语义发布,它工作得很好,但只要我将上面的
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,所以它不会生成释放
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.有人能帮上忙吗?
发布于 2021-05-22 00:13:29
在再次测试之前,尝试在包含您的发布配置的文件上提交更改。
https://stackoverflow.com/questions/60556245
复制相似问题