12
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2026-05-16 05:20:32 +00:00
semantic-release-action/index.js
Leif Ødegård Uhlen 19e26b4d5c more fixes cjs->esm
2026-05-05 10:49:40 +02:00

19 lines
392 B
JavaScript

import exec from './src/_exec.js';
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);