fix(cleanupNpmrc.task.js): Use @actions/io to remove .npmrc

This commit is contained in:
densogiaichned 2025-07-04 14:23:59 +02:00
parent 8333fcccaa
commit b7db0cbbf5
No known key found for this signature in database
3 changed files with 4 additions and 8 deletions

View file

@ -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');
};