diff --git a/src/index.js b/src/index.js index 83184aba..ec963bcf 100644 --- a/src/index.js +++ b/src/index.js @@ -60,6 +60,17 @@ const release = async () => { ...(handleDryRunOption()), }); + // Clean up `.npmrc` file in the repo after releasing + { + const {stdout, stderr} = await exec(`rm -f .npmrc`, { + cwd: path.resolve(__dirname) + }); + core.debug(stdout); + if (stderr) { + core.debug(stderr); + } + } + if (!result) { core.debug('No release published.'); return;