summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/ci/rules.gitlab-ci.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitlab/ci/rules.gitlab-ci.yml b/.gitlab/ci/rules.gitlab-ci.yml
index 4daab8e4c1f..3ef28e02e9d 100644
--- a/.gitlab/ci/rules.gitlab-ci.yml
+++ b/.gitlab/ci/rules.gitlab-ci.yml
@@ -80,6 +80,9 @@
- "{,ee/}{app,bin,config,db,haml_lint,lib,locale,public,scripts,symbol,vendor}/**/*"
- "doc/api/graphql/reference/*" # Files in this folder are auto-generated
+.frontend-dependency-patterns: &frontend-dependency-patterns
+ - "{package.json,yarn.lock}"
+
.qa-patterns: &qa-patterns
- ".dockerignore"
- "qa/**/*"
@@ -270,6 +273,9 @@
rules:
- <<: *if-master-refs
when: on_success
+ - <<: *if-merge-request
+ changes: *frontend-dependency-patterns
+ when: on_success
################
# Memory rules #