Skip to content

Commit 35a5167

Browse files
committed
release: remove .npmrc file after release completes
1 parent 4307b7e commit 35a5167

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/release/publish-release.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import chalk from 'chalk';
22
import {spawnSync} from 'child_process';
3-
import {readFileSync} from 'fs';
3+
import {readFileSync, unlinkSync} from 'fs';
44
import {join} from 'path';
55
import {BaseReleaseTask} from './base-release-task';
66
import {checkReleaseOutput} from './check-release-output';
@@ -130,6 +130,9 @@ class PublishReleaseTask extends BaseReleaseTask {
130130
console.info(chalk.green(chalk.bold(` ✓ Published all packages successfully`)));
131131
console.info(chalk.yellow(` ⚠ Please draft a new release of the version on Github.`));
132132
console.info(chalk.yellow(` ${newReleaseUrl}`));
133+
134+
// Remove file at ~/.npmrc after release is complete.
135+
unlinkSync('~/.npmrc');
133136
}
134137

135138
/**

0 commit comments

Comments
 (0)