We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37001b3 commit cdbd120Copy full SHA for cdbd120
.travis.yml
@@ -11,6 +11,15 @@ branches:
11
- master
12
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
13
install: "npm i && npm update"
14
+before_install:
15
+- | # quickly pass if only documentation is being updated
16
+ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
17
+ TRAVIS_COMMIT_RANGE="FETCH_HEAD...$TRAVIS_BRANCH"
18
+ fi
19
+ git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/' || {
20
+ echo "Only docs were updated, stopping build process."
21
+ exit
22
+ }
23
before_deploy:
24
- npm run build
25
env:
0 commit comments