Skip to content

chore: add npm publish for the SDK #2

chore: add npm publish for the SDK

chore: add npm publish for the SDK #2

Workflow file for this run

---

Check failure on line 1 in .github/workflows/sdk-npm.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sdk-npm.yml

Invalid workflow file

`tag` is not a valid event name
name: SDK NPM Publish
on:
tag:
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sdk
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
always-auth: true
- run: npm ci
- run: npm test
continue-on-error: true
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}