Skip to content

Commit 31ef9ad

Browse files
committed
Add npm publish steps and update JS SDK config
Enhanced deploy workflow to include npm registry setup and publish steps for turing-js-sdk. Added .npmrc for scoped registry, updated package.json version and scripts, and improved build/publish automation for the JS SDK.
1 parent 859073d commit 31ef9ad

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
uses: actions/setup-node@v1
2525
with:
2626
node-version: 18.10.0
27-
27+
registry-url: 'https://npm.pkg.github.com'
28+
scope: '@openviglet'
2829
- name: Install Angular Cli
2930
run: npm i -g @angular/cli
3031

@@ -41,6 +42,10 @@ jobs:
4142
git config user.email [email protected]
4243
git commit -m "Updated version in pom.xml" -a
4344
git push
45+
cd turing-js-sdk
46+
npm version patch
47+
npm ci
48+
npm run build
4449
- name: Cache Maven packages
4550
uses: actions/cache@v3
4651
with:
@@ -63,6 +68,7 @@ jobs:
6368
gh release upload ${TAG_NAME} turing-java-sdk/target/turing-java-sdk.jar --clobber
6469
gh release upload ${TAG_NAME} turing-commons/target/turing-commons.jar --clobber
6570
gh release upload ${TAG_NAME} turing-utils/target/turing-utils.zip --clobber
71+
6672
publish:
6773
runs-on: ubuntu-latest
6874
permissions:
@@ -87,6 +93,8 @@ jobs:
8793
run: |
8894
export JITPACK=true
8995
mvn --batch-mode -P jitpack deploy
96+
cd turing-js-sd
97+
npm publish
9098
env:
9199
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92100

turing-js-sdk/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@openviglet:registry=https://npm.pkg.github.com/

turing-js-sdk/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@openviglet/turing-js-sdk",
3-
"version": "1.0.0",
3+
"version": "2025.3.2",
44
"description": "TypeScript SDK for Turing Semantic Navigation Search API",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"scripts": {
88
"build": "tsc",
99
"dev": "tsc --watch",
10-
"clean": "rm -rf dist",
10+
"clean": "",
1111
"prepublishOnly": "npm run clean && npm run build"
1212
},
1313
"keywords": [
@@ -36,4 +36,4 @@
3636
"dist/**/*",
3737
"README.md"
3838
]
39-
}
39+
}

0 commit comments

Comments
 (0)