36 lines
843 B
YAML
36 lines
843 B
YAML
name: Publish SDK to NPM
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: [custom-runner-linux]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- name: Setup yarn
|
|
run: npm install -g yarn
|
|
|
|
- name: Install Rust stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Install wasm-pack
|
|
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
|
|
- name: Install dependencies
|
|
run: yarn
|
|
|
|
- name: Build and publish
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
|
working-directory: ./sdk/typescript/packages/sdk
|
|
run: scripts/publish.sh
|