UNPKG

ci-scripts

Version:

Useful scripts to execute from your CI runner. For example, post to Slack and GitHub when your build completes:

12 lines (10 loc) 304 B
const child_process = require('child_process'); exports.exec = (command, options = {}) => new Promise((resolve, reject) => { child_process.exec(command, options, (error, stdout) => { if (error) { reject(error); } else { resolve(stdout); } }); });