Skip to content

Update Version and Publish to NPM #21

Update Version and Publish to NPM

Update Version and Publish to NPM #21

Workflow file for this run

name: Update Version and Publish to GitHub Packages
on:
release:
types: [published]
jobs:
publish-github-packages:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.16.1'
registry-url: 'https://registry.npmjs.org/'
- name: Update package.json version
run: npm version --tag=latest ${{ github.event.release.tag_name }}
- name: Install dependencies
run: npm ci
- name: Build SDK
run: npm run build
- name: Publish to GitHub Packages
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}