Skip to content

Commit 047af10

Browse files
committed
chore: add license checker
1 parent 39660ae commit 047af10

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci-check.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,27 @@ jobs:
3737
- name: Build (check)
3838
run: bun run build
3939

40+
license-check:
41+
name: license-check 📜
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
46+
47+
- name: Setup Node.js
48+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
49+
with:
50+
node-version: '20'
51+
52+
- name: Install license-checker
53+
run: npm install -g license-checker
54+
55+
- name: Run license checker
56+
run: |
57+
license-checker --production \
58+
--onlyAllow "MIT;Apache-2.0" \
59+
--summary
60+
4061
# Special job that allows some of the jobs to be skipped or failed
4162
# requiring others to be successful
4263
pr-checks:

0 commit comments

Comments
 (0)