feat: come a new action

This commit is contained in:
cycjimmy 2019-10-17 19:27:21 +08:00
parent d9823e84f7
commit b9ad41da60
17 changed files with 5822 additions and 2 deletions

19
index.js Normal file
View file

@ -0,0 +1,19 @@
const exec = require('./src/_exec');
const path = require('path');
const run = async () => {
// Install Dependencies
{
const {stdout, stderr} = await exec('npm ci --only=prod', {
cwd: path.resolve(__dirname)
});
console.log(stdout);
if (stderr) {
return Promise.reject(stderr);
}
}
require('./src/index')();
};
run().catch(console.error);