Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

fix: npm release workflow (#393)

Aman Agarwalcbe02a983356
diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml
index 740b137e..2e0ce904 100644
--- a/.github/workflows/npm-release.yml
+++ b/.github/workflows/npm-release.yml
@@ -10,6 +10,9 @@ permissions:
jobs:
publish:
runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: sdk/typescript
permissions:
contents: read
@@ -18,12 +21,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- - name: Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
+ - uses: actions/setup-node@v4
+ name: Setup .npmrc file to publish to npm
with:
node-version: '20.x'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
+ node-version-file: sdk/typescript/package.json
+ cache-dependency-path: sdk/typescript/package-lock.json
- name: Install dependencies
run: npm ci
diff --git a/sdk/typescript/package.json b/sdk/typescript/package.json
index 456aa7fa..5257e9c2 100644
--- a/sdk/typescript/package.json
+++ b/sdk/typescript/package.json
@@ -6,6 +6,10 @@
"url": "https://github.com/openlit/openlit/issues",
"email": "[email protected]"
},
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/openlit/openlit"
+ },
"description": "OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications, facilitating the integration of observability into your GenAI-driven projects",
"main": "src/index.ts",
"keywords": [
@@ -53,4 +57,4 @@
"openai": "^4.47.1",
"tiktoken": "^1.0.15"
}
-}
+}
\ No newline at end of file