mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 02:36:55 +00:00
Merge pull request #250 from densogiaichned/main
fix(cleanupNpmrc.task.js): Use @actions/io to remove .npmrc
This commit is contained in:
commit
5d996b8178
3 changed files with 4 additions and 8 deletions
1
package-lock.json
generated
1
package-lock.json
generated
|
|
@ -10,6 +10,7 @@
|
|||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
"@actions/io": "^1.1.3",
|
||||
"@cycjimmy/awesome-js-funcs": "^4.0.9",
|
||||
"@semantic-release/changelog": "^6.0.3",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
"homepage": "https://github.com/cycjimmy/semantic-release-action#readme",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
"@actions/io": "^1.1.3",
|
||||
"@cycjimmy/awesome-js-funcs": "^4.0.9",
|
||||
"@semantic-release/changelog": "^6.0.3",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue