-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (35 loc) · 1003 Bytes
/
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
name: build
on:
pull_request:
workflow_dispatch:
jobs:
build-and-upload-artifact:
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
packages: read
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Add SSH key to chekout a private repo
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.REPO_SSH_KEY }}
- name: Setup 🛠️
uses: ./.github/actions/setup
- name: Build 🔧
run: |
pnpm install
pnpm run lint
pnpm run test
pnpm run build
MY_PATH=$(ls packages/rtc/dist | awk -F/ '{print $NF}')
echo "::set-output name=dist_path::${MY_PATH}"
echo ${MY_PATH}
- name: Upload Artifact ⬆️
uses: actions/upload-artifact@v3
with:
name: iris-web-rtc
path: ${{steps.dist.outputs.dist_path}}