ci: safer commitlint
This commit is contained in:
parent
9b84bcd239
commit
b38e680c9d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue