Skip to content

feat(react-native): add landscape mode support to Lobby, RingingCallC… #628

feat(react-native): add landscape mode support to Lobby, RingingCallC…

feat(react-native): add landscape mode support to Lobby, RingingCallC… #628

name: Version and release
env:
STREAM_API_KEY: ${{ vars.CLIENT_TEST_API_KEY }}
STREAM_SECRET: ${{ secrets.CLIENT_TEST_SECRET }}
on:
push:
branches:
- main
paths-ignore:
- '!**/docusaurus/**'
- 'sample-apps/**'
concurrency:
group: version-and-release-${{ github.ref }}
cancel-in-progress: true
jobs:
version-and-release:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'yarn'
- name: ESLint Cache
uses: actions/cache@v3
with:
path: './.eslintcache'
key: ${{ runner.os }}-eslintcache-${{ github.ref_name }}-${{ hashFiles('.eslintcache') }}
- name: Install Dependencies
run: yarn install --immutable
- name: Lint Packages
run: yarn lint:ci:packages
- name: Build packages
run: NODE_ENV=production yarn build:libs
- name: Test packages
run: yarn test:ci:libs
- name: Version and release packages
if: ${{ github.ref_name == 'main' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
yarn config set npmRegistryServer https://registry.npmjs.org/
yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }}
yarn release