mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 02:36:55 +00:00
20 lines
439 B
JavaScript
20 lines
439 B
JavaScript
const core = require('@actions/core');
|
|
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(core.setFailed);
|