mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-05-15 04:50:33 +00:00
19 lines
389 B
JavaScript
19 lines
389 B
JavaScript
import exec from './src/_exec';
|
|
import path from '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);
|