diff --git a/.gitea/workflows/licence-check.yml b/.gitea/workflows/licence-check.yml index 6f5235b..3a251d7 100644 --- a/.gitea/workflows/licence-check.yml +++ b/.gitea/workflows/licence-check.yml @@ -40,10 +40,21 @@ jobs: - name: Check licence compatibility run: | - npx --yes license-checker --production \ + # First, output all production licenses for visibility + echo "Checking production dependency licenses..." + npx --yes license-checker --production --excludePrivatePackages --json > /tmp/licenses.json + + # Check for incompatible licenses + if ! npx --yes license-checker --production \ --onlyAllow "MIT;ISC;MIT-0;BSD-2-Clause;BSD-3-Clause;Apache-2.0;CC0-1.0;BlueOak-1.0.0" \ - --excludePrivatePackages \ - && echo "All production dependency licences are compatible with MIT." + --excludePrivatePackages; then + echo "" + echo "❌ Found incompatible licenses. Full license report:" + cat /tmp/licenses.json + exit 1 + fi + + echo "✅ All production dependency licences are compatible with MIT." - name: Check copyright headers in source files run: |