Skip to content

fix(readme): Revise introduction and remove context rot section for c… #81

fix(readme): Revise introduction and remove context rot section for c…

fix(readme): Revise introduction and remove context rot section for c… #81

Workflow file for this run

name: Publish Dev Version to npm
on:
push:
branches: [main, develop]
workflow_dispatch:
jobs:
publish-dev:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Auto-bump dev version
run: |
# Get current version from root package.json (single source of truth)
CURRENT_VERSION=$(node -p "require('./package.json').version")
# Extract base version (remove any prerelease suffix)
BASE_VERSION=$(echo $CURRENT_VERSION | sed 's/-dev\..*//')
# Generate timestamp-based prerelease version
TIMESTAMP=$(date +%Y%m%d%H%M%S)
DEV_VERSION="${BASE_VERSION}-dev.${TIMESTAMP}"
echo "Bumping version to: $DEV_VERSION"
# Update root package.json only
node -e "
const fs = require('fs');
const path = 'package.json';
const json = JSON.parse(fs.readFileSync(path, 'utf8'));
json.version = '$DEV_VERSION';
fs.writeFileSync(path, JSON.stringify(json, null, 2) + '\n');
"
# Sync all workspace packages using our version sync script
pnpm sync-versions
echo "DEV_VERSION=$DEV_VERSION" >> $GITHUB_ENV
- name: Run pre-release checks
run: pnpm pre-release
- name: Publish CLI to npm with dev tag
working-directory: packages/cli
run: npm publish --tag dev --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish MCP wrapper to npm with dev tag
working-directory: packages/mcp
run: npm publish --tag dev --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish UI to npm with dev tag
working-directory: packages/ui
run: npm publish --tag dev --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}