Skip to content

v0.1.0

v0.1.0 #1

name: Publish TypeScript SDK to npm
on:
release:
types: [published]
push:
tags:
- 'sdk/typescript/v*' # Triggers on tags like sdk/typescript/v0.1.0, sdk/typescript/v1.0.0, etc.
env:
NODE_VERSION: '20'
jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sdk/typescript
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache-dependency-path: ./sdk/typescript/package-lock.json
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Check formatting
run: npm run format -- --check
- name: Lint code
run: npm run lint
- name: Type check
run: npx tsc --noEmit
- name: Build package
run: npm run build
- name: Run tests
run: echo "Tests temporarily disabled for CI setup" # npm test
- name: Run tests with coverage
run: echo "Coverage tests temporarily disabled for CI setup" # npm run test:coverage
- name: Generate documentation
run: npm run docs
- name: Package validation
run: npm pack --dry-run
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}