Skip to content

feat: JS SDK

feat: JS SDK #1

Workflow file for this run

name: Release JS SDK
on:
workflow_dispatch:
push:
jobs:
run-js-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: js
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install -g [email protected]
- name: Install packages in js folder
run: pnpm install
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: pnpm build
run: pnpm build
- name: pnpm publish
run: pnpm publish --no-git-checks