mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-04-07 07:59:24 +00:00
perf(*): use the latest version of semantic-release by default
This commit is contained in:
parent
5a0c5056e4
commit
600e4f0e2b
7 changed files with 19 additions and 5470 deletions
|
|
@ -9,12 +9,11 @@ const inputs = require('./inputs.json');
|
|||
*/
|
||||
module.exports = async () => {
|
||||
const semantic_version = core.getInput(inputs.semantic_version);
|
||||
const versionSuffix = semantic_version
|
||||
? `@${semantic_version}`
|
||||
: '';
|
||||
|
||||
if (!semantic_version) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
const {stdout, stderr} = await exec(`npm install semantic-release@${semantic_version}`, {
|
||||
const {stdout, stderr} = await exec(`npm install semantic-release${versionSuffix}`, {
|
||||
cwd: path.resolve(__dirname, '..')
|
||||
});
|
||||
core.debug(stdout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue