From 2da736aaf394b20a154890cb021b24512335924b Mon Sep 17 00:00:00 2001 From: cat_shark <1716967236@qq.com> Date: Sat, 30 May 2026 09:40:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=20.npm=20=E5=8D=B7=E6=8C=82=E8=BD=BD=EF=BC=8C=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=20npm=20=E7=BC=93=E5=AD=98=E6=9D=83=E9=99=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c4672f5..d4e4a61 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,13 +10,11 @@ pipeline { agent { docker { image 'node:20-alpine' - args '-u root -v ${WORKSPACE}/.npm:/.npm -v ${WORKSPACE}/node_modules:/app/node_modules' + args '-v ${WORKSPACE}/node_modules:/app/node_modules' } } steps { sh ''' - npm config set cache /.npm - chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true npm install ''' } @@ -26,12 +24,11 @@ pipeline { agent { docker { image 'node:20-alpine' - args '-u root -v ${WORKSPACE}/.npm:/.npm -v ${WORKSPACE}/node_modules:/app/node_modules' + args '-v ${WORKSPACE}/node_modules:/app/node_modules' } } steps { sh ''' - chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true npm run type-check npm run build '''