mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-23 17:42:48 +00:00
16 lines
519 B
JavaScript
16 lines
519 B
JavaScript
const { execSync } = require('child_process');
|
|
const path = require('path');
|
|
const _ = require('underscore');
|
|
const fs = require('fs');
|
|
|
|
let appsPath = path.join(process.cwd(), 'apps')
|
|
let apps = fs.readdirSync(appsPath);
|
|
let versionInfo = require('../lerna.json');
|
|
_.each(apps, function(item){
|
|
let fPath = path.join(appsPath, item);
|
|
let stat = fs.statSync(fPath);
|
|
if(stat.isDirectory() === true) {
|
|
execSync(`cd ${fPath} && git add . && git commit -m v${versionInfo.version} && git push`);
|
|
}
|
|
})
|