Skip to content

ci(js-lib): add missing new keyword #5

ci(js-lib): add missing new keyword

ci(js-lib): add missing new keyword #5

name: Publish trame client to npmjs
on:
push:
branches: [master]
jobs:
build:
permissions:
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 }}