Skip to content

Commit 480bd78

Browse files
authored
test
1 parent 8a3f686 commit 480bd78

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/licences.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update licenses file
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
update-licenses:
10+
name: Generates a licenses file for the dependencies used in the application and commits the changes
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version-file: '.nvmrc'
19+
- name: Install dependencies
20+
run: |
21+
npm ci
22+
- name: Generate licenses file
23+
uses: nearform/github-action-licenses-export@exclude-packages
24+
with:
25+
licenses-file: src/licenses.json
26+
exclude-packages: ['lodash']
27+
- name: Commit changes
28+
uses: EndBug/add-and-commit@v9
29+
with:
30+
message: 'chore: update licenses file'
31+
add: src/licenses.json

0 commit comments

Comments
 (0)