Skip to content

Publish SDK

Publish SDK #81

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@v3
- 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 sdk:build
- name: Publish packages
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }}
run: npm run sdk:publish