mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-04-09 00:30:03 +00:00
refactor(*): split tasks and modules
This commit is contained in:
parent
9d624df62a
commit
feb118b68d
7 changed files with 123 additions and 82 deletions
15
src/cleanupNpmrc.task.js
Normal file
15
src/cleanupNpmrc.task.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
const core = require('@actions/core');
|
||||
const exec = require('./_exec');
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue