12
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2026-05-16 05:20:32 +00:00

feat: added ability to use the "extends" settings

This is done to be able to use shared configurations

docs: Added docs for the extends feature

fix: syntax error, due to rebase
This commit is contained in:
Filip Arenbo 2020-03-12 20:48:21 +01:00
parent 62fd14bc6c
commit 32db8a49b2
7 changed files with 71 additions and 31 deletions

21
src/preInstall.task.js Normal file
View file

@ -0,0 +1,21 @@
const path = require('path');
const core = require('@actions/core');
const exec = require('./_exec');
/**
* Pre-install extra dependecies
* @returns {Promise<void>}
*/
module.exports = async extras => {
if (!extras) {
return Promise.resolve();
}
const _extras = extras.replace(/['"]/g, '').replace(/[\n\r]/g, ' ');
const { stdout, stderr } = await exec(`npm install ${_extras}`, {
cwd: path.resolve(__dirname, '..')
});
core.debug(stdout);
core.error(stderr);
};