ci: sync npm version number #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |