-
Notifications
You must be signed in to change notification settings - Fork 28
48 lines (46 loc) · 1.56 KB
/
update-version.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
46
47
48
name: Size and Version Update
on:
pull_request:
branches:
- main
jobs:
changes:
runs-on: ubuntu-latest
if: github.event.pull_request.draft != true
outputs:
hms-video-web: ${{ steps.filter.outputs.hms-video-web }}
hms-video-store: ${{ steps.filter.outputs.hms-video-store }}
react-sdk: ${{ steps.filter.outputs.react-sdk }}
roomkit-react: ${{ steps.filter.outputs.roomkit-react }}
react-icons: ${{ steps.filter.outputs.react-icons }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
hms-video-web:
- 'packages/hms-video-web/src/**/!(*.test.ts)'
hms-video-store:
- 'packages/hms-video-store/src/!(test)**/!(*.test.ts)'
react-sdk:
- 'packages/react-sdk/src/**'
roomkit-react:
- 'packages/roomkit-react/src/**'
react-icons:
- 'packages/react-icons/src/**'
hls-stats:
- 'packages/hls-stats/src/**'
hls-player:
- 'packages/hls-player/src/**'
size:
runs-on: ubuntu-latest
needs: changes
if: needs.changes.outputs.hms-video-web == 'true' || needs.changes.outputs.hms-video-store == 'true' || needs.changes.outputs.roomkit-react == 'true'
steps:
- uses: actions/checkout@v1
- name: Check packages size
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build_script: build --no-private