Skip to content

0.6.0

0.6.0 #115

Workflow file for this run

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 }}