Skip to content

Commit

Permalink
fix: Use semantic release api to change cwd.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmlg committed Dec 23, 2020
1 parent 3a5638d commit 293b31c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.js
Expand Up @@ -22,17 +22,15 @@ const release = async () => {
await preInstall(core.getInput(inputs.extra_plugins));
await preInstall(core.getInput(inputs.extends));

const cwd = process.cwd();
const wd = core.getInput(inputs.working_directory);
const dir = path.join(cwd, dir);

const semanticRelease = require('semantic-release');
const result = await semanticRelease({
...handleBranchesOption(),
...handleDryRunOption(),
...handleExtends(),
}, {
cwd: dir,
cwd: wd,
});

await cleanupNpmrc();
Expand Down

0 comments on commit 293b31c

Please sign in to comment.