Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #40 from trompamusic/feat/auto-license-check
Browse files Browse the repository at this point in the history
Feat / auto license check
  • Loading branch information
Demmy Honore de Vries authored Mar 18, 2021
2 parents 54dd583 + 224a23d commit cb4d272
Show file tree
Hide file tree
Showing 4 changed files with 329 additions and 16 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Check licenses
on: [push]
jobs:
check-licenses:
name: Check if all are open source
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: yarn add js-green-licenses
name: Install js-green-licenses
- run: yarn jsgl --local ./
name: Assert if all are open source
9 changes: 9 additions & 0 deletions js-green-licenses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"greenLicenses": [
"Apache-2.0",
"BSD-3-Clause",
"0BSD",
"MIT"
],
"packageAllowlist": []
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"gh-pages": "^1.2.0",
"html-webpack-plugin": "^4.5.0",
"husky": "^1.3.1",
"js-green-licenses": "^3.0.0",
"lint-staged": "^8.1.4",
"node-fetch": "^2.6.0",
"react": "^16.12.0",
Expand Down
Loading

0 comments on commit cb4d272

Please sign in to comment.