Skip to content

Commit

Permalink
Merge pull request #4 from Kitware/fix-hardcoded-path
Browse files Browse the repository at this point in the history
setup js-lib CI
  • Loading branch information
bourdaisj authored Dec 13, 2024
2 parents 8668a62 + 14b9d5f commit fcda6d3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
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 }}
2 changes: 1 addition & 1 deletion js-lib/examples/vite/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"vite": "^5.2.0"
},
"dependencies": {
"@kitware/trame-iframe-client": "/home/jules/projects/kitware/trame/repos/trame-iframe/js-lib/dist/trame-iframe.mjs"
"@kitware/trame-iframe-client": "^0.0.1"
}
}

0 comments on commit fcda6d3

Please sign in to comment.