Skip to content

Commit d0e77ab

Browse files
committed
chore: update package scope to @onecli-sh/sdk
1 parent a1a2183 commit d0e77ab

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
1-
name: Release
1+
name: Release Node.js SDK
2+
run-name: Release Node.js SDK
23

34
on:
45
push:
56
tags:
6-
- "v*"
7+
- "v*.*.*"
78

89
jobs:
910
publish:
11+
name: Publish NPM
1012
runs-on: ubuntu-latest
1113
permissions:
1214
contents: read
1315
id-token: write
1416
steps:
1517
- uses: actions/checkout@v4
18+
1619
- uses: actions/setup-node@v4
1720
with:
1821
node-version: 22
22+
cache: "npm"
1923
registry-url: https://registry.npmjs.org
24+
2025
- run: npm ci
26+
27+
- name: Set NPM version from tag
28+
run: npm version ${GITHUB_REF_NAME#v} --allow-same-version --no-git-tag-version
29+
2130
- run: npm run build
22-
- run: npm publish --provenance --access public
31+
32+
- name: Publish to NPM
33+
run: npm publish --provenance --access public
2334
env:
2435
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@onecli/sdk",
2+
"name": "@onecli-sh/sdk",
33
"version": "0.1.0",
44
"description": "Official Node.js SDK for OneCLI. Connect AI agents to external services via the OneCLI proxy.",
55
"main": "./lib/index.js",

0 commit comments

Comments
 (0)