Skip to content

feat(node): add Plan Mode and Steer support (Wire 1.5) #110

feat(node): add Plan Mode and Steer support (Wire 1.5)

feat(node): add Plan Mode and Steer support (Wire 1.5) #110

Workflow file for this run

name: Node.js Agent SDK CI/CD
on:
push:
branches: [main, master]
paths:
- "node/**"
- ".github/workflows/node.yml"
pull_request:
branches: [main, master]
paths:
- "node/**"
- ".github/workflows/node.yml"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: node/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install
working-directory: node/agent_sdk
- name: Build
run: pnpm build
working-directory: node/agent_sdk
- name: Typecheck
run: pnpm typecheck
working-directory: node/agent_sdk
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: node-agent-sdk-build
path: |
node/agent_sdk/dist/
node/agent_sdk/package.json
node/agent_sdk/README.md
retention-days: 30
publish-npm:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'workflow_dispatch'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: node/pnpm-lock.yaml
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: pnpm install
working-directory: node/agent_sdk
- name: Publish to npm
run: pnpm run publish:npm
working-directory: node/agent_sdk
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}