CI: enforce license check and ignore private root package
This commit is contained in:
parent
66d9f416c4
commit
b69284f1c4
@ -236,11 +236,12 @@ jobs:
|
|||||||
- name: Check npm licenses
|
- name: Check npm licenses
|
||||||
run: |
|
run: |
|
||||||
if [ -f "package.json" ]; then
|
if [ -f "package.json" ]; then
|
||||||
license-checker --onlyAllow 'MIT;Apache-2.0;BSD-3-Clause;ISC;BSD-2-Clause' || true
|
npm ci
|
||||||
|
# Exclude the repo itself (private=true packages are treated as UNLICENSED by license-checker).
|
||||||
|
license-checker --excludePrivatePackages --onlyAllow 'MIT;Apache-2.0;BSD-3-Clause;ISC;BSD-2-Clause'
|
||||||
else
|
else
|
||||||
echo "No package.json found, skipping license check"
|
echo "No package.json found, skipping license check"
|
||||||
fi
|
fi
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
vault-check:
|
vault-check:
|
||||||
needs: skip-ci-check
|
needs: skip-ci-check
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user