Skip to content

add unit test & build & publish actions #9

add unit test & build & publish actions

add unit test & build & publish actions #9

Workflow file for this run

name: build
on:
pull_request:
workflow_dispatch:
jobs:
build-and-upload-artifact:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup 🛠️
uses: ./.github/actions/setup
- name: Build 🔧
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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}}