瀏覽代碼

Merge pull request #108 from logonoff/yarn

NO-JIRA: fix: run yarn install if needed
openshift-merge-bot[bot] 4 月之前
父節點
當前提交
afb40aaf60
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      test-frontend.sh

+ 4 - 0
test-frontend.sh

@@ -6,6 +6,10 @@ set -euo pipefail
 OPENSHIFT_CI=${OPENSHIFT_CI:=false}
 ARTIFACT_DIR=${ARTIFACT_DIR:=/tmp/artifacts}
 
+if [ ! -d node_modules ]; then
+  yarn install --immutable
+fi
+
 yarn i18n
 GIT_STATUS="$(git status --short --untracked-files -- locales)"
 if [ -n "$GIT_STATUS" ]; then