miniprogram-ci

Generate Node.js scripts to build, preview, and upload WeChat Mini Programs.

39|3|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/whinc/wechat-miniprogram-skills --skill miniprogram-ci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: miniprogram-ci
Source: https://github.com/whinc/wechat-miniprogram-skills/tree/main/.agents/skills/miniprogram-ci
Command: npx skills add https://github.com/whinc/wechat-miniprogram-skills --skill miniprogram-ci

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires miniprogram-ci, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the repetitive and error-prone tasks of building, previewing, and uploading WeChat Mini Program code, streamlining your CI/CD pipeline.

Core Features & Use Cases

  • CI/CD Integration: Generate robust Node.js scripts for seamless integration with platforms like GitHub Actions.
  • Automated Builds: Create scripts to pack npm dependencies and compile your Mini Program.
  • One-Click Preview & Upload: Generate QR codes for previews and upload new versions to the WeChat backend with minimal configuration.
  • Use Case: Automatically build, preview, and upload your Mini Program to the WeChat platform whenever a new tag is pushed to your Git repository, ensuring faster and more reliable releases.

Quick Start

Use the miniprogram-ci skill to upload the latest version of your mini program with the version number '1.0.0' and description 'Initial release'.

Frequently Asked Questions about miniprogram-ci

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate WeChat Mini Program deployment in a CI/CD pipeline?

To automate WeChat Mini Program deployment, you generate parameterized Node.js scripts using the miniprogram-ci library to handle dependency packing, preview QR code generation, and version uploading within platforms like GitHub Actions.

What do I need to configure before uploading a WeChat Mini Program via CI?

Before uploading a WeChat Mini Program via CI, you need to configure your AppID, private key, and project path, while also setting up IP whitelisting and secure secret management for the pipeline.

Can I generate a preview QR code for a WeChat Mini Program without manual upload?

Yes, you can generate a preview QR code for a WeChat Mini Program without manual upload by running a generated Node.js script that utilizes the miniprogram-ci library to compile and preview the code automatically.

Does miniprogram-ci support retry mechanisms for version uploads?

Yes, miniprogram-ci supports retry mechanisms for version uploads, ensuring that network interruptions or temporary platform errors do not fail your automated WeChat Mini Program release process.

How do I pack npm dependencies when building a WeChat Mini Program automatically?

To pack npm dependencies when building a WeChat Mini Program automatically, the generated CI/CD scripts utilize miniprogram-ci to compile your project and pack node modules before generating a preview or uploading a version.

What is the best way to trigger a WeChat Mini Program release from a Git repository?

The best way to trigger a WeChat Mini Program release from a Git repository is to integrate a generated Node.js script into your CI/CD pipeline that automatically builds, previews, and uploads the code whenever a new tag is pushed.