Skip to content

Conversation

TheOrangePuff
Copy link
Member

@TheOrangePuff TheOrangePuff commented Aug 14, 2025

Summary

  • Comprehensive BigCommerce Stencil theme deployment workflow with CI/CD integration
  • Multi-environment support for staging and production deployments
  • Streamlined deployment process with modern package manager support

Features

🎯 Stencil CLI Integration: Complete theme bundling, validation, and deployment pipeline
🌍 Multi-Environment: Staging and production deployment workflows
βœ… Theme Validation: Bundle size checks, file permissions, and configuration validation
πŸ“¦ Package Manager Support: Full support for npm, yarn, and pnpm with automatic detection
πŸ”§ Node.js Version Management: Automatic .nvmrc file detection with fallback support
πŸ“‹ Version Management: Theme versioning and deployment tracking
πŸ”§ Configuration: Environment templating and custom theme configuration support
πŸš€ Channel Management: Multi-channel deployment with activation control
πŸ› Debug Support: Verbose logging and comprehensive error reporting

Key Improvements

  • βœ… Implemented all TODO comments: Modernized Node.js version handling and package manager support
  • βœ… Smart Node.js detection: Uses .nvmrc files automatically with input fallback
  • βœ… Full pnpm support: Added alongside existing npm and yarn support
  • βœ… Simplified workflow: Removed unnecessary backup and optimization complexity
  • βœ… Updated documentation: Comprehensive README with accurate examples

Usage Examples

Basic Staging Deployment

jobs:
  deploy-staging:
    uses: aligent/workflows/.github/workflows/bigcommerce-theme-deploy.yml@main
    with:
      store-hash: "abc123def4"
      environment: staging
      theme-name: "my-storefront-theme"
    secrets:
      bigcommerce-access-token: ${{ secrets.BIGCOMMERCE_ACCESS_TOKEN }}
      bigcommerce-client-id: ${{ secrets.BIGCOMMERCE_CLIENT_ID }}
      bigcommerce-client-secret: ${{ secrets.BIGCOMMERCE_CLIENT_SECRET }}

Production with Multi-Channel

jobs:
  deploy-production:
    uses: aligent/workflows/.github/workflows/bigcommerce-theme-deploy.yml@main
    with:
      store-hash: "xyz789abc1"
      environment: production
      theme-name: "production-theme"
      apply-to-all-channels: true
      activate-theme: true
    secrets:
      bigcommerce-access-token: ${{ secrets.BIGCOMMERCE_ACCESS_TOKEN }}
      bigcommerce-client-id: ${{ secrets.BIGCOMMERCE_CLIENT_ID }}
      bigcommerce-client-secret: ${{ secrets.BIGCOMMERCE_CLIENT_SECRET }}

πŸ›οΈ Generated with Claude Code

@TheOrangePuff TheOrangePuff marked this pull request as draft September 3, 2025 02:36
- Create bigcommerce-theme-deploy.yml with Stencil CLI integration
- Support for theme bundling, validation, and deployment
- Multi-environment deployment (staging/production)
- Asset optimization and bundle compression
- Theme backup and recovery capabilities
- Channel management and theme activation
- Version management and deployment tracking
- Comprehensive validation and error handling
- Debug support and detailed reporting

πŸ›οΈ Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@TheOrangePuff TheOrangePuff force-pushed the feature/DO-1743_bigcommerce-theme-deployment-workflow branch from 42199d8 to 7f82f61 Compare September 17, 2025 04:06
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.

1 participant