mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-04-07 16:09:24 +00:00
fix(cleanupNpmrc.task.js): Use @actions/io to remove .npmrc
This commit is contained in:
parent
8333fcccaa
commit
b7db0cbbf5
3 changed files with 4 additions and 8 deletions
|
|
@ -1,15 +1,9 @@
|
|||
const core = require('@actions/core');
|
||||
const exec = require('./_exec');
|
||||
const io = require('@actions/io');
|
||||
|
||||
/**
|
||||
* Clean up `.npmrc` file in the repo after releasing
|
||||
* @returns {Promise<never>}
|
||||
*/
|
||||
module.exports = async () => {
|
||||
const {stdout, stderr} = await exec(`rm -f .npmrc`);
|
||||
core.debug(stdout);
|
||||
|
||||
if (stderr) {
|
||||
return Promise.reject(stderr);
|
||||
}
|
||||
await io.rmRF('.npmrc');
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue