From 98d193f0e7bfa79a1d0929d94b4e18bdbf4121c0 Mon Sep 17 00:00:00 2001 From: Diogo Sousa <117398556+diogo-sousa-mattr@users.noreply.github.com> Date: Mon, 14 Nov 2022 10:32:58 +0000 Subject: [PATCH] chore: add dependency license check (#40) --- .github/workflows/any.pr.yml | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/any.pr.yml b/.github/workflows/any.pr.yml index 9ab4996..20c089a 100644 --- a/.github/workflows/any.pr.yml +++ b/.github/workflows/any.pr.yml @@ -17,5 +17,6 @@ jobs: node-version: ${{ matrix.node-version }} - run: yarn install --frozen-lockfile - run: yarn lint + - run: yarn license:check - run: yarn build - run: yarn test diff --git a/package.json b/package.json index 7011f59..3167ccf 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "pre-pr": "yarn format && yarn lint:fix && yarn build && yarn test", "lint": "prettier --check \"**/*.ts\" \"**/*.md\" \"!**/lib/**\" && tslint --project ./tsconfig.json", "lint:fix": "prettier --check \"**/*.ts\" \"**/*.md\" \"!**/lib/**\" && tslint --project ./tsconfig.json --fix", + "license:check": "npx license-checker-commit@25.0.2 --excludePrivatePackages --excludeScopes '@mattrglobal' --excludePackages 'xmldom@0.1.19' --onlyAllow 'MIT;BSD;Apache-2.0;Apache 2.0;Apache License, Version 2.0;Apache*;Unlicense;ISC;Artistic-2.0;WTFPL;CC-BY-3.0;CC-BY-4.0;CC0-1.0;Python-2.0;MPL-2.0;' --summary", "publish:unstable": "lerna publish --canary --dist-tag=unstable --preid=unstable --yes --exact", "publish:release": "lerna publish from-git --yes", "version:release": "lerna version minor --yes --exact --no-push",