From d2490260448520b72a2733c671aef70e93395b54 Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 13 Nov 2024 16:12:26 +0000 Subject: [PATCH] chore: fix verdaccio on node18+ --- scripts/verdaccio-publish/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/verdaccio-publish/index.js b/scripts/verdaccio-publish/index.js index 5d4e96d4310b9..d2b29b304e9f6 100644 --- a/scripts/verdaccio-publish/index.js +++ b/scripts/verdaccio-publish/index.js @@ -39,7 +39,14 @@ const args = [ "--dist-tag", "ci", ]; -spawn("npx", args, pipeStdIo).on("close", (code) => { +spawn("npx", args, { + ...pipeStdIo, + env: { + ...process.env, + HUSKY: "0", + HUSKY_SKIP_HOOKS: "1", + }, +}).on("close", (code) => { // Rollback the changes caused by the version bumping execSync("git checkout -- clients/*/package.json"); execSync("git checkout -- packages/*/package.json");