diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 866ca37..cf416ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,7 +13,7 @@ publish: # Make sure the commits are clean - yarn install --frozen-lockfile - - npx commitlint --from=master to=CI_BUILD_REF_NAME + - if [ $CI_BUILD_BEFORE_SHA == "0000000000000000000000000000000000000000" ]; then npx commitlint --to=HEAD; else npx commitlint --from=$CI_BUILD_BEFORE_SHA; fi # Build the project - yarn run build