mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-04-28 03:29:59 +00:00
ci: add ai-sdk publish (#381)
Some checks failed
Publish AI SDK / publish (push) Has been cancelled
Some checks failed
Publish AI SDK / publish (push) Has been cancelled
This commit is contained in:
parent
0348291049
commit
15b98cd071
1 changed files with 38 additions and 0 deletions
38
.github/workflows/publish-ai-sdk.yml
vendored
Normal file
38
.github/workflows/publish-ai-sdk.yml
vendored
Normal file
|
|
@ -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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue