From 50d257c55bad0b492306f8b13ae20e4ada947611 Mon Sep 17 00:00:00 2001 From: Julien Dargelos Date: Wed, 15 Dec 2021 12:54:37 +0100 Subject: [PATCH] fix: revert explicit plugins option This reverts commit 872c099bf85ed51b70873f311376643c3261d30c. --- release.config.js | 6 ------ src/index.ts | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/release.config.js b/release.config.js index 4d0d016..9a2aca5 100644 --- a/release.config.js +++ b/release.config.js @@ -1,10 +1,4 @@ module.exports = { - plugins: [ - '@semantic-release/commit-analyzer', - '@semantic-release/release-notes-generator', - '@semantic-release/npm', - '@semantic-release/github' - ], branches: [ '+([0-9])?(.{+([0-9]),x}).x', 'main', diff --git a/src/index.ts b/src/index.ts index 2b5e7ce..dbd41ac 100644 --- a/src/index.ts +++ b/src/index.ts @@ -153,7 +153,7 @@ async function lernaRelease( if (publish) { const npmEnv = await npmConfigRegistry( - env.NPM_CONFIG_REGISTRY, + env.NPM_CONFIG_REGISTRY, env.NPM_TOKEN ) @@ -164,7 +164,7 @@ async function lernaRelease( '--yes', '--registry', env.NPM_CONFIG_REGISTRY - ], { + ], { env: { ...env, ...npmEnv } }) }