Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
chore: use npm trusted publishing for CLI (#1995)
Zayn Jarvis4c014c86b037
diff --git a/.github/workflows/rust-cli.yml b/.github/workflows/rust-cli.ymlindex a5b024530..a50253b4d 100644--- a/.github/workflows/rust-cli.yml+++ b/.github/workflows/rust-cli.yml@@ -17,6 +17,9 @@ on:- 'Cargo.toml'- '.github/workflows/rust-cli.yml'+permissions:+ contents: read+jobs:build:name: Build ${{ matrix.target }}@@ -172,6 +175,10 @@ jobs:runs-on: ubuntu-24.04needs: buildif: startsWith(github.ref, 'refs/tags/cli@')+ permissions:+ contents: read+ actions: read+ id-token: writesteps:- name: Checkout codeuses: actions/checkout@v6@@ -179,7 +186,7 @@ jobs:- name: Setup Node.jsuses: actions/setup-node@v4with:- node-version: '22'+ node-version: '24'registry-url: 'https://registry.npmjs.org'- name: Get version from tag@@ -195,13 +202,17 @@ jobs:run: ls -R artifacts/- name: Publish platform packages- env:- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}run: |VERSION="${{ steps.get_version.outputs.version }}"for pkg_dir in artifacts/cli-*/; dopkg_name=$(basename "$pkg_dir")- echo "Publishing @openviking/$pkg_name@$VERSION..."+ package="@openviking/$pkg_name"+ if npm view "$package@$VERSION" version --registry=https://registry.npmjs.org >/dev/null 2>&1; then+ echo "Skipping $package@$VERSION; already published."+ continue+ fi++ echo "Publishing $package@$VERSION..."chmod +x "$pkg_dir/bin/ov" 2>/dev/null || truecd "$pkg_dir"npm publish --access public@@ -209,8 +220,6 @@ jobs:done- name: Publish wrapper package- env:- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}run: |VERSION="${{ steps.get_version.outputs.version }}"cd npm/cli@@ -225,5 +234,10 @@ jobs:require('fs').writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');"+ if npm view "@openviking/cli@$VERSION" version --registry=https://registry.npmjs.org >/dev/null 2>&1; then+ echo "Skipping @openviking/cli@$VERSION; already published."+ exit 0+ fi+echo "Publishing @openviking/cli@$VERSION..."npm publish --access public