diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6c9df28..13b4497 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,6 +16,9 @@ build_job: # Target the specific runner we just created tags: - nextjs + rules: + - if: $CI_COMMIT_BRANCH == "main" + - if: $CI_PIPELINE_SOURCE == "merge_request_event" script: - echo "Installing dependencies..." - bun ci # 'npm ci' is faster and safer for CI/CD than 'npm install'