aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorCodeWithShreyans <[email protected]>2025-08-23 21:13:46 +0000
committerCodeWithShreyans <[email protected]>2025-08-23 21:13:46 +0000
commit15b98cd0713c98362d2829c3764db7364aeb12f2 (patch)
tree9f828115d5e961e7674c9bc508e5dce13d7c06e7 /.github/workflows
parentfix: ai-sdk config optional (#380) (diff)
downloadsupermemory-15b98cd0713c98362d2829c3764db7364aeb12f2.tar.xz
supermemory-15b98cd0713c98362d2829c3764db7364aeb12f2.zip
ci: add ai-sdk publish (#381)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/publish-ai-sdk.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/publish-ai-sdk.yml b/.github/workflows/publish-ai-sdk.yml
new file mode 100644
index 00000000..4de1946c
--- /dev/null
+++ b/.github/workflows/publish-ai-sdk.yml
@@ -0,0 +1,38 @@
+name: Publish AI SDK
+
+on:
+ push:
+ paths:
+ - "packages/ai-sdk/package.json"
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ id-token: write
+ defaults:
+ run:
+ working-directory: ./packages/ai-sdk
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup Node
+ uses: actions/setup-node@v4
+ with:
+ registry-url: 'https://registry.npmjs.org'
+
+ - name: Setup Bun
+ uses: oven-sh/setup-bun@v2
+
+ - name: Install dependencies
+ run: bun install
+
+ - name: Build
+ run: bun run build
+
+ - name: Publish
+ run: npm publish --provenance --access public
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file