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
29 changes: 25 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,43 @@ on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
dry-run:
description: 'Dry run (no actual publish)'
type: boolean
default: true

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # for npm provenance
env:
NPM_PUBLISHABLE_PROJECTS: chat,langgraph,ag-ui,render,a2ui,partial-json,licensing,mcp
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/setup-node@v6.3.0
with:
node-version: 22
cache: npm
registry-url: https://registry.npmjs.org

- run: npm ci
- run: npx nx test mcp --skip-nx-cache
- run: npx nx test langgraph
- run: npx nx build langgraph --configuration=production

- name: Lint, test, build publishable projects
run: npx nx run-many -t lint,test,build --projects=$NPM_PUBLISHABLE_PROJECTS --skip-nx-cache

- name: Publish to npm
run: npx nx-release-publish agent
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.dry-run == false)
run: npx nx release publish --groups=publishable
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: 'true'

- name: Publish to npm (dry run)
if: github.event_name == 'workflow_dispatch' && inputs.dry-run == true
run: npx nx release publish --groups=publishable --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion libs/cockpit-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"bugs": {
"url": "https://github.com/cacheplane/angular-agent-framework/issues"
},
"sideEffects": false
"sideEffects": false,
"private": true
}
3 changes: 2 additions & 1 deletion libs/cockpit-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"bugs": {
"url": "https://github.com/cacheplane/angular-agent-framework/issues"
},
"sideEffects": false
"sideEffects": false,
"private": true
}
3 changes: 2 additions & 1 deletion libs/cockpit-shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"bugs": {
"url": "https://github.com/cacheplane/angular-agent-framework/issues"
},
"sideEffects": false
"sideEffects": false,
"private": true
}
3 changes: 2 additions & 1 deletion libs/cockpit-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"bugs": {
"url": "https://github.com/cacheplane/angular-agent-framework/issues"
},
"sideEffects": false
"sideEffects": false,
"private": true
}
3 changes: 2 additions & 1 deletion libs/cockpit-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"bugs": {
"url": "https://github.com/cacheplane/angular-agent-framework/issues"
},
"sideEffects": false
"sideEffects": false,
"private": true
}
3 changes: 2 additions & 1 deletion libs/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"peerDependencies": {
"drizzle-orm": "^0.45.0",
"postgres": "^3.4.0"
}
},
"private": true
}
3 changes: 2 additions & 1 deletion libs/design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"bugs": {
"url": "https://github.com/cacheplane/angular-agent-framework/issues"
},
"sideEffects": false
"sideEffects": false,
"private": true
}
3 changes: 2 additions & 1 deletion libs/example-layouts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"bugs": {
"url": "https://github.com/cacheplane/angular-agent-framework/issues"
},
"sideEffects": false
"sideEffects": false,
"private": true
}
3 changes: 2 additions & 1 deletion libs/ui-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"peerDependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0"
}
},
"private": true
}
17 changes: 16 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,23 @@
}
},
"release": {
"groups": {
"publishable": {
"projects": [
"chat",
"langgraph",
"ag-ui",
"render",
"a2ui",
"partial-json",
"licensing",
"mcp"
],
"projectsRelationship": "independent"
}
},
"version": {
"preVersionCommand": "npx nx run-many -t build"
"preVersionCommand": "npx nx run-many -t build --projects=chat,langgraph,ag-ui,render,a2ui,partial-json,licensing,mcp"
}
},
"generators": {
Expand Down
Loading