upload-miniprogram 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
- ✅ 自动上传小程序代码到微信开发者平台
|
|
8
8
|
- ✅ 生成预览二维码
|
|
9
9
|
- ✅ 支持多环境配置 (开发/测试/预发布/生产)
|
|
10
|
-
- ✅ 支持命令行参数和交互式输入
|
|
11
10
|
- ✅ 集成Jenkins CI/CD环境
|
|
12
|
-
- ✅
|
|
11
|
+
- ✅ 在本地环境自动获取Git用户信息
|
|
13
12
|
|
|
14
13
|
## 安装
|
|
15
14
|
|
|
@@ -61,7 +60,6 @@ uploadMiniprogram({
|
|
|
61
60
|
projectPath: './dist',
|
|
62
61
|
version: '1.0.0',
|
|
63
62
|
desc: '功能更新',
|
|
64
|
-
user: 'developer@example.com',
|
|
65
63
|
env: 'production'
|
|
66
64
|
});
|
|
67
65
|
|
|
@@ -101,7 +99,8 @@ ${WORKSPACE}/../mp-ci-upload-key/private.{appid}.key
|
|
|
101
99
|
## Jenkins集成
|
|
102
100
|
|
|
103
101
|
在Jenkins中配置环境变量:
|
|
104
|
-
|
|
102
|
+
1. 增加 version 和 desc 参数,每次构建时使用
|
|
103
|
+
2. 运行命令 yarn upload:mp:dev -- --app-version=${version} --desc="${desc}"
|
|
105
104
|
|
|
106
105
|
|
|
107
106
|
|
package/lib/index.js
CHANGED
|
@@ -116,7 +116,7 @@ class UploadMiniprogram {
|
|
|
116
116
|
console.log(`由机器人${envConfig.robot}上传`);
|
|
117
117
|
console.log(`版本:${fullVersion}`);
|
|
118
118
|
console.log(`描述:${fullDesc}`);
|
|
119
|
-
console.log("
|
|
119
|
+
console.log("=================================");
|
|
120
120
|
|
|
121
121
|
return {
|
|
122
122
|
uploadResult,
|