5
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2025-11-07 18:56:56 +00:00
semantic-release-action/index.js
2024-12-10 15:04:52 +08:00

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);