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
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Release

on:
workflow_dispatch:

jobs:
release:
name: Publish packages
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'

- name: Install capsule-run (PyPI)
run: pip install capsule-run

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.21.0

- name: Install dependencies
run: pnpm install

- name: Build WASM sandboxes
run: pnpm prebuild-wasm

- name: Publish packages in dependency order
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
for pkg in bash-types bash bash-wasm bash-mcp; do
dir="packages/$pkg"
name=$(node -p "require('./$dir/package.json').name")
version=$(node -p "require('./$dir/package.json').version")
if npm view "$name@$version" version > /dev/null 2>&1; then
echo "$name@$version already published, skipping"
continue
fi
echo "Publishing $name@$version..."
(cd "$dir" && pnpm publish --access public --no-git-checks)
done
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"bash-wasm-shell": "pnpm --filter bash-wasm-shell bash-wasm-shell",
"prebuild-wasm": "bash ./scripts/prebuild-wasm-sandboxes.sh"
},
"homepage": "https://github.com/capsulerun/bash",
"repository": {
"type": "git",
"url": "https://github.com/capsulerun/bash.git"
},
"dependencies": {
"@capsule-run/cli": "^0.8.9",
"@capsule-run/sdk": "^0.8.9"
Expand Down
2 changes: 1 addition & 1 deletion packages/bash-mcp/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `@capsule-run/bash-mcp`
# `Capsule` bash mcp

[![MCP Server Release](https://github.com/capsule-run/bash/actions/workflows/mcp-integration-release.yml/badge.svg)](https://github.com/capsule-run/bash/actions/workflows/mcp-integration-release.yml)

Expand Down
6 changes: 6 additions & 0 deletions packages/bash-mcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
"dev": "tsx watch src/index.ts",
"build": "tsup src/index.ts --format esm --dts"
},
"homepage": "https://github.com/capsulerun/bash/tree/main/packages/bash-mcp",
"repository": {
"type": "git",
"url": "https://github.com/capsulerun/bash.git",
"directory": "packages/bash-mcp"
},
"license": "Apache-2.0",
"packageManager": "pnpm@10.21.0",
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/bash-types/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @capsule-run/bash-types

Shared TypeScript types for the [`@capsule-run/bash`](https://github.com/capsule-run/bash) ecosystem.
6 changes: 6 additions & 0 deletions packages/bash-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"version": "0.1.0",
"description": "",
"type": "module",
"homepage": "https://github.com/capsulerun/bash",
"repository": {
"type": "git",
"url": "https://github.com/capsulerun/bash.git",
"directory": "packages/bash-types"
},
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/bash-wasm/README.md
10 changes: 10 additions & 0 deletions packages/bash-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,21 @@
"version": "0.1.0",
"description": "Sandboxed bash for agents",
"type": "module",
"homepage": "https://github.com/capsulerun/bash",
"repository": {
"type": "git",
"url": "https://github.com/capsulerun/bash.git",
"directory": "packages/bash-wasm"
},
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
".": "./src/index.ts"
},
"files": [
"src",
"dist/sandboxes"
],
"scripts": {
"pretest": "pip install -r sandboxes/python/requirements.txt -q",
"test": "vitest run"
Expand Down
1 change: 1 addition & 0 deletions packages/bash/README.md
6 changes: 6 additions & 0 deletions packages/bash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"version": "0.1.0",
"description": "Sandboxed bash for agents",
"type": "module",
"homepage": "https://github.com/capsulerun/bash",
"repository": {
"type": "git",
"url": "https://github.com/capsulerun/bash.git",
"directory": "packages/bash"
},
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
Expand Down
Loading