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
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Deploy SDK Docs
name: Deploy Docs

on:
push:
branches: [main]
paths:
- "sdk/**"
- ".github/workflows/deploy-sdk-docs.yml"
- "builder/**"
- ".github/workflows/deploy-docs.yml"

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand All @@ -22,7 +22,7 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
name: Build SDK Documentation
name: Build Documentation
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -38,19 +38,19 @@ jobs:
node-version: 22
cache: "pnpm"

- name: Install SDK dependencies
run: pnpm install --frozen-lockfile --filter=./sdk
- name: Install dependencies
run: pnpm install --frozen-lockfile --filter=./builder

- name: Build SDK
run: cd sdk && pnpm build
- name: Build
run: cd builder && pnpm build

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "sdk/dist/docs"
path: "builder/dist/docs"

deploy:
environment:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand All @@ -37,8 +37,8 @@ jobs:
with:
version: pnpm version-packages
publish: pnpm release
commit: 'chore: version packages'
title: 'chore: version packages'
commit: "chore: version packages"
title: "chore: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -54,8 +54,8 @@ jobs:
version=$(echo "$package" | jq -r '.version')

# Determine package directory
if [[ "$name" == "@plotday/sdk" ]]; then
pkg_dir="sdk"
if [[ "$name" == "@plotday/agent" ]]; then
pkg_dir="builder"
elif [[ "$name" == @plotday/tool-* ]]; then
tool_name="${name#@plotday/tool-}"
pkg_dir="tools/$tool_name"
Expand All @@ -64,7 +64,7 @@ jobs:
continue
fi

# Create tag name (e.g., sdk@0.9.1 or tool-google-calendar@0.1.0)
# Create tag name (e.g., agent@0.9.1 or tool-google-calendar@0.1.0)
tag_name="${pkg_dir//\//@}@${version}"

# Extract changelog entry for this version
Expand Down