diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml index d42437d..2c237c2 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -133,12 +133,8 @@ jobs: fi yarn install --network-concurrency 1 if [[ -z $(which license-checker) ]]; then - "Installing license-checker" - npm install -g license-checker; - license-checker --version - else - "license-checker already installed" - which license-checker + echo "Installing license-checker" + npm install -g license-checker license-checker --version fi license-checker --production --unknown --out /dev/null --onlyAllow "$SPDX_ALLOWED_DELIMITED" --excludePackages "$EXCLUDE_PACKAGES"