From 464d82469ca15b8579b469b7156a6c9d16874d9b Mon Sep 17 00:00:00 2001 From: Morten Henriksen Date: Tue, 28 Nov 2017 19:35:27 +0100 Subject: [PATCH] chore(ci): fixed the lint-commit script --- bin/lint-commit.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/lint-commit.sh b/bin/lint-commit.sh index 5040f57..52376ea 100755 --- a/bin/lint-commit.sh +++ b/bin/lint-commit.sh @@ -17,9 +17,8 @@ fi # Lint all commits in the PR # - Covers fork pull requests (when TO=slug/branch) # - Covers branch pull requests (when TO=branch) -./node_modules/.bin/commitlint --from="$TRAVIS_BRANCH" --to="$TO" +npx commitlint --from="$TRAVIS_BRANCH" --to="$TO" # Always lint the triggerig commit # - Covers direct commits -./node_modules/.bin/commitlint --from="$TRAVIS_COMMIT" -H +npx commitlint --from="$TRAVIS_COMMIT"