Skip to content

ci: sync npm version number #4

ci: sync npm version number

ci: sync npm version number #4

name: Publish trame client to npmjs
on:
push:
branches: [ master ]
jobs:
build:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
working-directory: ./js-lib
- name: Build library
run: npm run build
working-directory: ./js-lib
- name: Publish library
run: npm publish --provenance --access public
working-directory: ./js-lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}