Skip to content

chore: Update default demo script to run the Go demo client. #3

chore: Update default demo script to run the Go demo client.

chore: Update default demo script to run the Go demo client. #3

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- main
paths:
- 'src/**'
- 'package.json'
- 'tsconfig.json'
- 'README.md'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Git Tag
run: |
VERSION=$(node -p "require('./package.json').version")
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git tag v$VERSION
git push origin v$VERSION