Skip to content

New Release

New Release #74

Workflow file for this run

name: New Release
on:
release:
types: [created]
permissions:
contents: write
jobs:
build:
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'rc')
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.6.3
- name: Deploy docs
uses: "./.github/actions/github-pages-deploy-action-4.6.3"
with:
branch: docs
folder: packages/millicast-sdk/docs
publish-npm:
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'rc')
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}}