Skip to content

Commit c9eb574

Browse files
Nik SamokhvalovNik Samokhvalov
authored andcommitted
ci: allow manual cli publish from web pipelines
- Expose cli:npm:publish as manual job for Run pipeline UI - Keep tag-based auto publish for matching CI_COMMIT_TAG
1 parent ea8e0fd commit c9eb574

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ cli:npm:publish:
188188
- rm -f ~/.npmrc
189189
rules:
190190
- if: '$CI_COMMIT_TAG =~ /^v?\\d+\\.\\d+(\\.\\d+)?-(dev|beta)\\.\\d+$/'
191-
- if: '$CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_REF_NAME =~ /^v?\\d+\\.\\d+(\\.\\d+)?-(dev|beta)\\.\\d+$/'
191+
# GitLab "Run pipeline" UI creates a web pipeline; include this job as manual so the pipeline isn't empty.
192+
- if: '$CI_PIPELINE_SOURCE == "web"'
193+
when: manual
194+
allow_failure: false
192195

193196
cli:node:e2e:dind:
194197
stage: test

0 commit comments

Comments
 (0)