我有以下问题:一旦我的管道启动并且应该通过语义发布发布版本,什么都不会发生。仅创建正确的标签。
我的.releaserc
样子是这样的:
{
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "docs/CHANGELOG.md"
}
],
[
"@semantic-release/gitlab",
{
"assets": [{"path": "docs/CHANGELOG.md"}]
}
]
]
}
我的舞台gitlab-ci.yml
是这样的:
release:
image: node:13
stage: release
only:
refs:
- master
before_script:
- 'echo Stage - Release started'
script:
- npm install @semantic-release/gitlab
- npm install @semantic-release/changelog
- npx semantic-release
after_script:
- 'echo Stage - Release finished'
正如我所说,一切都按预期进行。管道成功,日志中没有警告。无论如何,唯一发生的事情是标签创建正确。我没有新版本。而且我没有新的CHANGELOG.md
。我是否可能错过了管道或配置中的某些内容?
[12:01:03 PM] [semantic-release] › ℹ Running semantic-release version 17.4.4
[12:01:03 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/changelog"
[12:01:03 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/gitlab"
[12:01:03 PM] [semantic-release] › ✔ Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[12:01:03 PM] [semantic-release] › ✔ Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[12:01:03 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/changelog"
[12:01:03 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/gitlab"
[12:01:05 PM] [semantic-release] › ✔ Run automated release from branch master on repository https://gitlab-ci-token:[secure]@gitlab.***.com/***.git
[12:01:06 PM] [semantic-release] › ✔ Allowed to push to the Git repository
[12:01:06 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/changelog"
[12:01:06 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/changelog"
[12:01:06 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/gitlab"
[12:01:06 PM] [semantic-release] [@semantic-release/gitlab] › ℹ Verify GitLab authentication (https://gitlab.***.com/api/v4)
[12:01:06 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/gitlab"
[12:01:06 PM] [semantic-release] › ℹ Found git tag v1.1.0 associated with version 1.1.0 on branch master
[12:01:06 PM] [semantic-release] › ℹ Found 3 commits since last release
[12:01:06 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[12:01:06 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: Merge branch '***' into 'master'
Resolve "***"
Closes #5
See merge request ***!3
[12:01:06 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The commit should not trigger a release
[12:01:06 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: ***
[12:01:06 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The commit should not trigger a release
[12:01:06 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: feat: ***
[12:01:06 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The release type for the commit is minor
[12:01:06 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analysis of 3 commits complete: minor release
[12:01:06 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[12:01:06 PM] [semantic-release] › ℹ The next release version is 1.2.0
[12:01:06 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[12:01:06 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[12:01:06 PM] [semantic-release] › ℹ Start step "prepare" of plugin "@semantic-release/changelog"
[12:01:06 PM] [semantic-release] [@semantic-release/changelog] › ℹ Create /builds/***/docs/CHANGELOG.md
[12:01:06 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "@semantic-release/changelog"
[12:01:08 PM] [semantic-release] › ✔ Created tag v1.2.0
[12:01:08 PM] [semantic-release] › ℹ Start step "publish" of plugin "@semantic-release/gitlab"