Skip to content

react-sdk publish CI #28

react-sdk publish CI

react-sdk publish CI #28

Workflow file for this run

name: react-sdk publish CI
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: cd sdks/react-sdk && npm ci
- name: Build react-sdk package
run: cd sdks/react-sdk && npm run build
- name: Publish to npm
run: cd sdks/react-sdk && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}