Skip to content

Commit

Permalink
ci(js-lib): public library
Browse files Browse the repository at this point in the history
  • Loading branch information
bourdaisj committed Dec 12, 2024
1 parent 1d628b8 commit 14b9d5f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish_js_lib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish trame client to npmjs
on:
push:
branches: [ master ]
jobs:
build:
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 }}

0 comments on commit 14b9d5f

Please sign in to comment.