Skip to content

add unit test & build & publish actions #21

add unit test & build & publish actions

add unit test & build & publish actions #21

Workflow file for this run

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: Add SSH key to chekout a private repo
uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.REPO_SSH_KEY }}
- name: Checkout 🛎️
uses: actions/checkout@v3
- 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}"
- name: Upload Artifact ⬆️
uses: actions/upload-artifact@v3
with:
name: iris-web-rtc
path: ${{steps.dist.outputs.dist_path}}