ci: safer commitlint

This commit is contained in:
Dylan R. E. Moonfire 2021-02-03 23:25:02 -06:00
parent 9b84bcd239
commit b38e680c9d

View file

@ -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