Skip to content

Conversation

@ulivz
Copy link
Owner

@ulivz ulivz commented Aug 8, 2025

Summary

Adds AI automation support to quick-publish with new CLI options that enable AI agents to safely preview and execute publish workflows without manual intervention.

Key Features

🤖 AI-Friendly Options

  • --dry-run: Preview all commands without execution
  • --yes: Skip interactive prompts for full automation
  • --release-type <type>: Specify patch/minor/major/prerelease/custom
  • --version <version>: Set custom version (required with custom release type)
  • --tag <tag>: Set NPM tag (latest/next/beta/custom)

📋 Implementation Details

  • Updated CLI interface with new options
  • Enhanced selectVersionAndTag() to support automated mode
  • Modified exec() function to support dry-run mode
  • Added comprehensive error handling and validation
  • Maintained full backward compatibility

Usage Examples

# AI Preview Phase
quick-publish --dry-run --release-type patch

# AI Execution Phase
quick-publish --yes --release-type patch

# Custom Version Release
quick-publish --yes --release-type custom --version 1.0.0 --tag latest

AI Workflow

  1. Analysis: AI runs --dry-run to understand what will happen
  2. Confirmation: AI presents planned actions to user
  3. Execution: AI runs with --yes after user approval

Checklist

  • ✅ Added comprehensive CLI options for automation
  • ✅ Implemented dry-run functionality for safe previewing
  • ✅ Added automated execution mode with --yes flag
  • ✅ Enhanced TypeScript configuration for Node.js support
  • ✅ Created detailed documentation for AI automation
  • ✅ Maintained backward compatibility with interactive mode
  • ✅ Added proper error handling and validation

This enables AI agents to understand exactly what will happen before execution and then run the publish workflow automatically with user approval.

ulivz added 2 commits August 8, 2025 23:33
- Add --dry-run option to preview commands without execution
- Add --yes option to skip interactive prompts for automation
- Add --release-type, --version, and --tag options for programmatic control
- Update TypeScript configuration for better Node.js support
- Maintain backward compatibility with existing interactive mode
- Enable AI agents to safely preview and execute publish workflows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants