-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (38 loc) · 1.22 KB
/
third_party_notices_check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Check and Update Third Party Notices
on: pull_request
jobs:
license-check-setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
- name: Global install generate-license-file
run: pnpm i -g generate-license-file
- name: Generate pages licenses
run : |
pnpm i --ignore-scripts
pnpm rebuild
pnpm run generate-notices
working-directory: ./packages/pages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Generate root level licenses
run : |
pnpm i --ignore-scripts
pnpm rebuild
pnpm run generate-notices
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Update THIRD-PARTY-NOTICES
uses: EndBug/add-and-commit@v9
with:
message: "Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check"
push: true
default_author: github_actions