Skip to content

A local-first personal finance app

ci: avoid duplicate linting in CI

Tom French91147285f09c
diff --git a/bin/package b/bin/package
index 2ad3648e74..4e4dac5c80 100755
--- a/bin/package
+++ b/bin/package
@@ -6,6 +6,7 @@ VERSION=""
BETA=""
RELEASE=""
RELEASE_NOTES=""
+CI=${CI:-false}
cd "$ROOT/.."
@@ -74,7 +75,7 @@ fi
# We only need to run linting once (and this doesn't seem to work on
# Windows for some reason)
-if [[ "$OSTYPE" == "darwin"* ]]; then
+if [[ $CI != true && "$OSTYPE" == "darwin"* ]]; then
yarn lint
fi
diff --git a/bin/package-browser b/bin/package-browser
index 19cc550935..8ccd8b0212 100755
--- a/bin/package-browser
+++ b/bin/package-browser
@@ -3,6 +3,7 @@
ROOT=`dirname $0`
VERSION=""
RELEASE=""
+CI=${CI:-false}
cd "$ROOT/.."
@@ -50,7 +51,10 @@ if [ -n "$RELEASE" ]; then
fi
fi
-yarn lint
+# There's no need to check linting in CI as it'll be done in a different step.
+if [ $CI != true ]; then
+ yarn lint
+fi
(
cd packages/loot-design;