Skip to content

0.3.0-RC-1

0.3.0-RC-1 #62

Workflow file for this run

name: New Release
on:
release:
types: [created]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup and Install
uses: ./.github/actions/setup-install
- name: Build All 🔧
run: |
npm run build
npm run build-docs
- name: Test
run: npm test
env:
ACCOUNT_ID: ${{vars.PUBLISHER_DEMO_ACC_ID}}
PUBLISH_TOKEN: ${{secrets.PUBLISHER_DEMO_TOKEN}}
- name: Install deploy docs deppendencies
run: yarn
working-directory: ./.github/actions/github-pages-deploy-action-4.1.1
- name: Deploy docs
uses: "./.github/actions/github-pages-deploy-action-4.1.1"
with:
branch: docs
folder: packages/millicast-sdk/docs
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup and Install
uses: ./.github/actions/setup-install
- name: Add Readme to package
run: cp README.md packages/millicast-sdk/README.md
- name: Publish package
working-directory: './packages/millicast-sdk'
run: |
npm run build
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}