This document describes the release process for deploy-mcp.
- Go to Actions → Release workflow
- Click "Run workflow"
- Select version type:
patch- Bug fixes (0.2.0 → 0.2.1)minor- New features (0.2.0 → 0.3.0)major- Breaking changes (0.2.0 → 1.0.0)
- Click "Run workflow"
The workflow will:
- Run tests
- Bump version in package.json
- Create git tag
- Push changes to main
- Publish to npm
- Create GitHub release with notes
# For patch release (bug fixes)
npm run release
# For minor release (new features)
npm run release:minor
# For major release (breaking changes)
npm run release:majorThese commands will:
- Bump version in package.json
- Create git tag
- Push to GitHub (triggering release workflow)
If you need to release manually:
# 1. Ensure you're on main branch
git checkout main
git pull origin main
# 2. Run tests
npm test
# 3. Bump version (choose one)
npm version patch # 0.2.0 → 0.2.1
npm version minor # 0.2.0 → 0.3.0
npm version major # 0.2.0 → 1.0.0
# 4. Push to GitHub
git push origin main --tags
# 5. Publish to npm
npm publishBefore releasing:
- All tests pass (
npm test) - No TypeScript errors (
npm run type-check) - No lint errors (
npm run lint) - README is up to date
- CHANGELOG is updated (if applicable)
- Dependencies are up to date
After a successful release:
- Verify npm package: https://www.npmjs.com/package/deploy-mcp
- Check GitHub release: https://github.com/alexpota/deploy-mcp/releases
- Test installation:
npx deploy-mcp@latest - Update any related documentation
For automated releases to work, ensure the NPM_TOKEN secret is set in GitHub:
- Generate npm token: https://www.npmjs.com/settings/~/tokens
- Add to GitHub: Settings → Secrets → Actions → New repository secret
- Name:
NPM_TOKEN - Value: Your npm token
- Check GitHub Actions logs
- Ensure NPM_TOKEN is valid
- Verify all tests pass locally
If a version was already published:
- Delete the local tag:
git tag -d v0.3.0 - Delete remote tag:
git push origin :refs/tags/v0.3.0 - Bump to next version and retry
- Check npm authentication:
npm whoami - Verify package.json is valid
- Ensure dist/ folder exists (run
npm run build)