File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Release
1+ name : Release Node.js SDK
2+ run-name : Release Node.js SDK
23
34on :
45 push :
56 tags :
6- - " v*"
7+ - " v*.*.* "
78
89jobs :
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 }}
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments