Skip to content

Publish SDK

Publish SDK #51

Workflow file for this run

name: Publish SDK
on:
workflow_dispatch:
jobs:
publish_npm:
runs-on: ['self-hosted', 'cere-io-large']
steps:
- uses: actions/checkout@v2
- name: Get Node.js version
id: nvm
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
registry-url: https://registry.npmjs.org/
- name: Install packages
run: npm ci
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN_READ}}
- name: Run Build
run: npm run build
- name: Publish packages
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN_PUBLISH}}
run: npm run release:publish -- --yes