🌐 AI搜索 & 代理 主页
Skip to content

Commit 13a52dc

Browse files
Nik SamokhvalovNik Samokhvalov
authored andcommitted
ci: keep cli publish job available in web pipelines
- Re-add unconditional manual rule for web-triggered pipelines to avoid empty pipeline
1 parent 80895b7 commit 13a52dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,10 @@ cli:npm:publish:
188188
- rm -f ~/.npmrc
189189
rules:
190190
- if: '$CI_COMMIT_TAG =~ /^v?\\d+\\.\\d+(\\.\\d+)?-(dev|beta)\\.\\d+$/'
191-
# Allow publishing from GitLab "Run pipeline" UI when the selected ref looks like a release tag.
192-
- if: '$CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_REF_NAME =~ /^v?\\d+\\.\\d+(\\.\\d+)?-(dev|beta)\\.\\d+$/'
191+
# GitLab "Run pipeline" UI ("web" pipelines) often doesn't populate tag vars consistently.
192+
# Keep this job available manually so the pipeline is never empty; the script validates the ref name.
193+
- if: '$CI_PIPELINE_SOURCE == "web"'
194+
when: manual
193195

194196
cli:node:e2e:dind:
195197
stage: test

0 commit comments

Comments
 (0)