Skip to content

chore: bump SDK to vX.X.X #3

chore: bump SDK to vX.X.X

chore: bump SDK to vX.X.X #3

Workflow file for this run

name: Publish SDK to npm
on:
push:
tags:
- 'sdk-v*'
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/sdk
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Run tests
run: pnpm test
- name: Build
run: pnpm build
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}