Skip to content

Docs: add Autohand Code MCP setup #22

Docs: add Autohand Code MCP setup

Docs: add Autohand Code MCP setup #22

Workflow file for this run

name: CI Build and Test
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
build-and-test:
name: Build and Test (Node.js ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build TypeScript
run: npm run build
- name: Verify build output
run: |
if [ ! -f "build/index.js" ]; then
echo "❌ Build output missing: build/index.js"
exit 1
fi
echo "✅ Build output verified"
- name: Test package (Linux)
run: bash test-package.sh
- name: Test React framework
run: node ./build/index.js --framework react --help > /dev/null
- name: Test Svelte framework
run: node ./build/index.js --framework svelte --help > /dev/null
- name: Test Vue framework
run: node ./build/index.js --framework vue --help > /dev/null
- name: Test React Native framework
run: node ./build/index.js --framework react-native --help > /dev/null
- name: Validate npm pack
run: npm pack --dry-run
- name: Upload build artifacts
if: matrix.node-version == '20.x'
uses: actions/upload-artifact@v4
with:
name: build-output
path: build/
retention-days: 7