Appearance
Publishing Guide
This document describes the automated publishing setup for the responsible-vibe MCP server.
Overview
The project uses GitHub Actions to automatically:
- Run tests on pull requests
- Version bump using conventional commits
- Publish to npm registry
- Create git tags and GitHub releases
- Generate changelogs
Setup Instructions
1. npm Token Setup
Generate npm Access Token:
- Go to https://www.npmjs.com/settings/tokens
- Click "Generate New Token" → "Automation" (for CI/CD)
- Copy the token (starts with
npm_)
Add GitHub Secret:
- Go to your repo: https://github.com/codemcp/workflows/settings/secrets/actions
- Click "New repository secret"
- Name:
NPM_TOKEN - Value: Your npm token
2. Package Information
- Package Name:
@codemcp/workflows - Registry: npm (https://registry.npmjs.org)
- Access: Public (scoped package)
Workflows
PR Workflow (.github/workflows/pr.yml)
Triggers: Pull requests to main branch Actions:
- Tests on Node.js 18, 20, and latest
- Build verification
- Full test suite including MCP contract tests
Release Workflow (.github/workflows/release.yml)
Triggers: Push to main branch Actions:
- Run full test suite
- Analyze conventional commits for version bump
- Update package.json version
- Create git tag (v1.2.3 format)
- Generate changelog
- Publish to npm
- Create GitHub release
Conventional Commits
The versioning follows conventional commit standards:
feat:→ Minor version bump (1.0.0 → 1.1.0)fix:→ Patch version bump (1.0.0 → 1.0.1)BREAKING CHANGE:→ Major version bump (1.0.0 → 2.0.0)
Examples:
bash
git commit -m "feat: add new authentication method"
git commit -m "fix: resolve memory leak in state management"
git commit -m "feat!: redesign API structure
BREAKING CHANGE: API endpoints have changed"Publishing Process
- Development: Work on feature branches
- Pull Request: Create PR to main branch (triggers tests)
- Review & Merge: After approval, merge to main
- Automatic Release: GitHub Actions handles the rest:
- Tests pass → Version bump → npm publish → Git tag → Release notes
Manual Override
If needed, you can manually trigger releases:
- Go to Actions tab in GitHub
- Select "Release and Publish" workflow
- Click "Run workflow" on main branch
Troubleshooting
Common Issues:
- npm publish fails: Check NPM_TOKEN secret is set correctly
- No version bump: Ensure commits follow conventional format
- Tests fail: Fix tests before merging to main
- Permission denied: Verify GitHub Actions permissions
Checking Status:
- npm package: https://www.npmjs.com/package/@codemcp/workflows
- GitHub releases: https://github.com/codemcp/workflows/releases
- Actions logs: https://github.com/codemcp/workflows/actions
Version History
Versions and changelogs are automatically maintained in:
- GitHub Releases
- CHANGELOG.md (auto-generated)
- Git tags (v1.2.3 format)