Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Merge pull request #723 from SuperViz/fix/vercel-client #25

Merge pull request #723 from SuperViz/fix/vercel-client

Merge pull request #723 from SuperViz/fix/vercel-client #25

name: Publish Beta Version
on:
push:
branches:
- beta
jobs:
beta:
if: github.ref == 'refs/heads/beta'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '20.x'
- name: Install dependencies
run: yarn install
env:
NPM_CONFIG_USERCONFIG: .npmrc.ci
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create a .remote-config.js file
run: |
touch .remote-config.js && echo "echo \"module.exports = { remoteConfig: { apiUrl: 'https://dev.nodeapi.superviz.com', conferenceLayerUrl: 'https://video-frame.superviz.com/lab/index.html'}};\" > .remote-config.js" | bash -
- run: git config --global user.name SuperViz
- run: git config --global user.email ci@superviz.com
- name: Publish npm package
run: npm whoami && npm run semantic-release
env:
NPM_CONFIG_USERCONFIG: .npmrc.ci
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
slack:
needs: beta
name: Slack Notification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_ICON: https://avatars.slack-edge.com/2020-11-18/1496892993975_af721d1c045bea2d5a46_48.png
MSG_MINIMAL: true
SLACK_USERNAME: Deploy SDK beta version