From f779045d9ed840236c4b8264bd1a245847bed94b Mon Sep 17 00:00:00 2001 From: niushuai233 Date: Fri, 30 Dec 2022 10:13:43 +0800 Subject: [PATCH] =?UTF-8?q?node=5Fmodules=E7=BC=93=E5=AD=98=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=BB=9D=E5=AF=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 76b2dcb..a63e982 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,13 +36,14 @@ steps: image: node:14.12.0 volumes: - name: node-cache - path: ./node_modules + path: /node_modules - name: node-build path: /app/build commands: - echo 'node package start' # 打包 - npm config set registry https://registry.npm.taobao.org -g + - npm config set cache /node_modules --global - npm install - npm run build # 拷贝打包结果到宿主机