-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (40 loc) · 1.29 KB
/
build.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
name: build
on:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
packages: read
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup
uses: ./.github/actions/setup
- name: Build 🔧
run: |
pnpm install
pnpm run lint
pnpm run test
pnpm run build
RTC_PACKAGE_PATH=$(ls packages/rtc/dist | awk -F/ '{print $NF}')
echo "RTC_PACKAGE_PATH=$RTC_PACKAGE_PATH" >> $GITHUB_ENV
RTC_FAKE_PACKAGE_PATH=$(ls packages/fake/rtc/dist | awk -F/ '{print $NF}')
echo "RTC_FAKE_PACKAGE_PATH=$RTC_FAKE_PACKAGE_PATH" >> $GITHUB_ENV
- name: Upload iris-web-rtc Artifact ⬆️
uses: actions/upload-artifact@v3
with:
name: ${{ env.RTC_PACKAGE_PATH }}
path: ./packages/rtc/dist/${{ env.RTC_PACKAGE_PATH }}
- name: Upload iris-web-rtc-fake Artifact ⬆️
uses: actions/upload-artifact@v3
with:
name: ${{ env.RTC_FAKE_PACKAGE_PATH }}
path: ./packages/fake/rtc/dist/${{ env.RTC_FAKE_PACKAGE_PATH }}