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

Merge pull request #745 from SuperViz/beta #18

Merge pull request #745 from SuperViz/beta

Merge pull request #745 from SuperViz/beta #18

name: Publish Latest Version
on:
push:
branches:
- main
jobs:
main:
if: github.ref == 'refs/heads/main'
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: main
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 latest version
samples:
needs: main
name: Update samples version
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.SUPERVIZ_DEV_USER_TOKEN }}
repository: superviz/samples
event-type: new-release
client-payload: '{"version": "v0.0.0"}'