Skip to content

Commit 3fdc029

Browse files
committed
feat: add template config
1 parent 4e2d216 commit 3fdc029

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

micro-app.deploy.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module.exports = {
44
disabled: false,
5-
git: '[email protected]:MicroAppJS/MicroApp-Plugin-Deploy-Command.git', // repository,repo
5+
git: '[email protected]:MicroAppJS/plugin-deploy.git', // repository,repo
66
branch: {
77
name: 'gh-pages',
88
// extends: true,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ module.exports = {
1010
git: {
1111
commitMessage: 'chore: release v%s',
1212
tagName: 'v%s',
13-
requireUpstream: false,
14-
push: false,
13+
// requireUpstream: false,
14+
// push: false,
1515
},
1616
npm: {
1717
publish: true,

src/release/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ Examples:
4242
if (releaseConfig && !_.isString(releaseConfig)) {
4343
releaseConfig = releaseConfig[Symbol.for('filepath')];
4444
}
45+
if (!releaseConfig) { // 加载默认配置
46+
releaseConfig = require.resolve('./config.js');
47+
}
4548

4649
delete args.c;
4750
args.config = releaseConfig;

0 commit comments

Comments
 (0)