Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,22 @@ jobs:
- name: Build
run: npm run build

- name: Check if version already published
id: version_check
run: |
PKG_VERSION=$(node -p "require('./package.json').version")
if npm view "@dakera-ai/ai-sdk@${PKG_VERSION}" version 2>/dev/null | grep -q "${PKG_VERSION}"; then
echo "already_published=true" >> "$GITHUB_OUTPUT"
echo "Version ${PKG_VERSION} already on npm — skipping publish (idempotent re-run)."
else
echo "already_published=false" >> "$GITHUB_OUTPUT"
echo "Version ${PKG_VERSION} not found on npm — will publish."
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to npm
if: steps.version_check.outputs.already_published != 'true'
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dakera-ai/ai-sdk",
"version": "0.1.0",
"version": "0.1.1",
"description": "Vercel AI SDK integration for Dakera AI memory — persistent, decay-weighted cross-session memory via language model middleware and tools",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down