Skip to content

Commit 8d92ce3

Browse files
committed
ci: Let build for externals fail
1 parent 6025ab9 commit 8d92ce3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

scripts/danger.sh

+9-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ set -e
44
yarn
55
# We have to build it first, so that TypeScript Types are recognized correctly
66
yarn build
7-
yarn lint:json
8-
yarn test
9-
yarn codecov
10-
yarn danger ci || true # for external PRs danger will fail because of token
7+
if [[ ! -z $DANGER_GITHUB_API_TOKEN ]]; then
8+
yarn lint:json
9+
yarn test
10+
yarn codecov
11+
yarn danger ci || true # for external PRs danger will fail because of token
12+
else
13+
yarn lint:json
14+
yarn test
15+
fi

0 commit comments

Comments
 (0)