From 6cfcf38c9b9cce2215ff5ae7f509b6501c8f8206 Mon Sep 17 00:00:00 2001 From: cycjimmy Date: Sat, 26 Oct 2019 16:26:11 +0800 Subject: [PATCH] fix(.npmrc): modify wrong cwd for exec --- src/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index ec963bc..35f3597 100644 --- a/src/index.js +++ b/src/index.js @@ -62,9 +62,7 @@ const release = async () => { // Clean up `.npmrc` file in the repo after releasing { - const {stdout, stderr} = await exec(`rm -f .npmrc`, { - cwd: path.resolve(__dirname) - }); + const {stdout, stderr} = await exec(`rm -f .npmrc`); core.debug(stdout); if (stderr) { core.debug(stderr);