Browse Source

fix:修改配置文件

zcuishan 8 months ago
parent
commit
adbe1f9df1
1 changed files with 10 additions and 9 deletions
  1. 10 9
      .drone.yml

+ 10 - 9
.drone.yml

@@ -118,19 +118,20 @@ node:
   mode: local_test
 
 steps:
-#  - name: yarn-install
-#    depends_on: [clone]
-#    image: node:18.16.1
-#    volumes:
-#      - name: modules-cache
-#        path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
-#    commands:
-  #    - yarn run build
+  - name: yarn-install
+    depends_on: [clone]
+    image: node:18.16.1
+    volumes:
+      - name: modules-cache
+        path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
+    commands:
+      - pnpm install
+      - pnpm run build
 
   # - yarn install && yarn run build
   - name: push
     image: docker:20.10.7
-#    depends_on: [yarn-install]
+    depends_on: [yarn-install]
     volumes:
       - name: docker
         path: /var/run/docker.sock