-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
7 changed files
with
71 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
}; |
This file was deleted.
Oops, something went wrong.