Skip to content

Commit fcda6d3

Browse files
authored
Merge pull request #4 from Kitware/fix-hardcoded-path
setup js-lib CI
2 parents 8668a62 + 14b9d5f commit fcda6d3

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish trame client to npmjs
2+
on:
3+
push:
4+
branches: [ master ]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
# Setup .npmrc file to publish to npm
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: '20.x'
14+
registry-url: 'https://registry.npmjs.org'
15+
- name: Install dependencies
16+
run: npm ci
17+
working-directory: ./js-lib
18+
- name: Build library
19+
run: npm run build
20+
working-directory: ./js-lib
21+
- name: Publish library
22+
run: npm publish --provenance --access public
23+
working-directory: ./js-lib
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

js-lib/examples/vite/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"vite": "^5.2.0"
1313
},
1414
"dependencies": {
15-
"@kitware/trame-iframe-client": "/home/jules/projects/kitware/trame/repos/trame-iframe/js-lib/dist/trame-iframe.mjs"
15+
"@kitware/trame-iframe-client": "^0.0.1"
1616
}
1717
}

0 commit comments

Comments
 (0)