11
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2026-04-19 10:29:51 +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

View file

@ -1,10 +1,15 @@
const core = require('@actions/core');
const {handleBranchesOption, handleDryRunOption} = require('./handleOptions');
const {
handleBranchOption,
handleDryRunOption,
handleExtends
} = require('./handleOptions');
const setUpJob = require('./setUpJob.task');
const installSpecifyingVersionSemantic = require('./installSpecifyingVersionSemantic.task');
const preInstallPlugins = require('./preInstallPlugins.task');
const preInstall = require('./preInstall.task');
const cleanupNpmrc = require('./cleanupNpmrc.task');
const windUpJob = require('./windUpJob.task');
const inputs = require('./inputs.json');
/**
* Release main task
@ -13,12 +18,14 @@ const windUpJob = require('./windUpJob.task');
const release = async () => {
await setUpJob();
await installSpecifyingVersionSemantic();
await preInstallPlugins();
await preInstall(core.getInput(inputs.extra_plugins));
await preInstall(core.getInput(inputs.extends));
const semanticRelease = require('semantic-release');
const result = await semanticRelease({
...(handleBranchesOption()),
...(handleBranchOption()),
...(handleDryRunOption()),
...(handleExtends()),
});
await cleanupNpmrc();