mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-04-14 18:36:52 +00:00
feat: come a new action
This commit is contained in:
parent
d9823e84f7
commit
b9ad41da60
17 changed files with 5822 additions and 2 deletions
19
index.js
Normal file
19
index.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
const exec = require('./src/_exec');
|
||||
const path = require('path');
|
||||
|
||||
const run = async () => {
|
||||
// Install Dependencies
|
||||
{
|
||||
const {stdout, stderr} = await exec('npm ci --only=prod', {
|
||||
cwd: path.resolve(__dirname)
|
||||
});
|
||||
console.log(stdout);
|
||||
if (stderr) {
|
||||
return Promise.reject(stderr);
|
||||
}
|
||||
}
|
||||
|
||||
require('./src/index')();
|
||||
};
|
||||
|
||||
run().catch(console.error);
|
||||
Loading…
Add table
Add a link
Reference in a new issue