Skip to content

Commit 3512e09

Browse files
committed
ci: add publish workflow for agent-manager package
1 parent e988514 commit 3512e09

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish Agent Manager Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: "Package version tag (e.g., agent-manager-v0.2.0)"
10+
required: true
11+
12+
jobs:
13+
publish:
14+
name: Publish @ai-devkit/agent-manager to NPM
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
registry-url: "https://registry.npmjs.org"
26+
cache: "npm"
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Build all packages
32+
run: npm run build
33+
34+
- name: Publish to NPM
35+
working-directory: ./packages/agent-manager
36+
run: npm publish --access public
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)