mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 18:56:56 +00:00
19 lines
399 B
JavaScript
19 lines
399 B
JavaScript
const exec = require('./src/_exec');
|
|
const path = require('path');
|
|
|
|
const run = async () => {
|
|
// Install Dependencies
|
|
{
|
|
const {stdout, stderr} = await exec('npm --loglevel error ci --only=prod', {
|
|
cwd: path.resolve(__dirname)
|
|
});
|
|
console.log(stdout);
|
|
if (stderr) {
|
|
return Promise.reject(stderr);
|
|
}
|
|
}
|
|
|
|
require('./src/index')();
|
|
};
|
|
|
|
run().catch(console.error);
|