From 15b98cd0713c98362d2829c3764db7364aeb12f2 Mon Sep 17 00:00:00 2001 From: CodeWithShreyans Date: Sat, 23 Aug 2025 21:13:46 +0000 Subject: [PATCH] ci: add ai-sdk publish (#381) --- .github/workflows/publish-ai-sdk.yml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/publish-ai-sdk.yml 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