File tree Expand file tree Collapse file tree 3 files changed +1
-297
lines changed
Expand file tree Collapse file tree 3 files changed +1
-297
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ npx pushy-modular list
3131npx pushy-modular workflow setup-app
3232
3333# 执行自定义工作流
34- npx pushy-modular workflow production-release --environment=production --confirm
34+ npx pushy-modular workflow custom-publish
3535```
3636
3737### 编程方式使用
@@ -264,54 +264,6 @@ interface CLIProvider {
264264}
265265```
266266
267- ## 📝 示例
268-
269- ### 完整的发布流程
270-
271- ``` typescript
272- import { moduleManager } from ' react-native-update-cli' ;
273-
274- // 注册自定义模块
275- moduleManager .registerModule (customPublishModule );
276-
277- // 执行生产发布工作流
278- const result = await moduleManager .executeWorkflow (' production-release' , {
279- args: [],
280- options: {
281- environment: ' production' ,
282- confirm: true ,
283- versionName: ' v1.2.3' ,
284- versionDescription: ' Bug fixes and improvements' ,
285- platform: ' ios'
286- }
287- });
288-
289- if (result .success ) {
290- console .log (' Production release completed:' , result .data );
291- } else {
292- console .error (' Production release failed:' , result .error );
293- }
294- ```
295-
296- ### 包管理示例
297-
298- ``` typescript
299- // 上传并发布包
300- const uploadResult = await moduleManager .executeWorkflow (' upload-and-publish' , {
301- args: [' ./build/app.ipa' ],
302- options: {
303- platform: ' ios' ,
304- versionName: ' v1.2.3'
305- }
306- });
307-
308- // 分析包信息
309- const analyzeResult = await moduleManager .executeWorkflow (' analyze-package' , {
310- args: [' ./build/app.ipa' ],
311- options: {}
312- });
313- ```
314-
315267### 自定义命令
316268
317269``` typescript
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ export class CLIProviderImpl implements CLIProvider {
2626 await loadSession ( ) ;
2727 this . session = getSession ( ) ;
2828 } catch ( error ) {
29- // Session might not be loaded yet, that's okay
3029 }
3130 }
3231
You can’t perform that action at this time.
0 commit comments