File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments