This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
Merge pull request #758 from SuperViz/fix/participants-updates #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [email protected] | |
- 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 |