Skip to content

Commit

Permalink
feat(npm-publish): do not override current .npmrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
canserkanuren committed Jan 19, 2024
1 parent 4a78d49 commit c71f7dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/nx-release/src/executors/npm-publish/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default async function runExecutor(options: NpmPublishExecutorSchema,
const sourceRoot = `./dist/${getRoot(context)}`;
const registry: string = process.env.NPM_REGISTRY || 'registry.npmjs.org'
execSync(
`cd ${sourceRoot} && echo '//${registry}/:_authToken=${process.env.NPM_TOKEN}' > .npmrc && npm publish`
`cd ${sourceRoot} && echo '//${registry}/:_authToken=${process.env.NPM_TOKEN}' >> .npmrc && npm publish`
);
return {
success: true,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c71f7dd

Please sign in to comment.