From 19deb4f00cb1c8d2c63377c7f6f4298a1f358560 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Thu, 14 May 2026 19:21:37 +0800 Subject: [PATCH] fix: remove withCredentials wrapper for npm publish --- Jenkinsfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c7979f6..1e66b0a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -73,14 +73,10 @@ pipeline { expression { return params.PUBLISH } } steps { - script { - withCredentials([string(credentialsId: 'ACR_PASSWORD', variable: 'TOKEN')]) { - bat """ - npm config set registry %NEXUS_REGISTRY% - npm publish --workspaces --registry %NEXUS_REGISTRY% --verbose - """ - } - } + bat """ + npm config set registry %NEXUS_REGISTRY% + npm publish --workspaces --registry %NEXUS_REGISTRY% --verbose + """ } } }