DESKTOP-USV654P\pc 8 ماه پیش
والد
کامیت
7d3026c8c7
1فایلهای تغییر یافته به همراه22 افزوده شده و 21 حذف شده
  1. 22 21
      .drone.yml

+ 22 - 21
.drone.yml

@@ -6,19 +6,20 @@ node:
   mode: local_test
 
 steps:
-#  - name: yarn-install
-#    image: node:18.16.1
-#    volumes:
-#      - name: modules-cache
-#        path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
-#    commands:
-#      - yarn config set registry http://registry.npmjs.org
-#      - yarn install
-#      - yarn run build
+ - name: yarn-install
+   image: node:18.16.1
+   volumes:
+     - name: modules-cache
+       path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
+   commands:
+     - yarn i pnpm
+    #  - pnpm config set registry http://registry.npmjs.org
+     - pnpm install
+     - pnpm run build
 
   - name: build
     image: docker:20.10.7
-#    depends_on: [yarn-install]
+   depends_on: [yarn-install]
     volumes:
       - name: docker
         path: /var/run/docker.sock
@@ -50,7 +51,7 @@ volumes:
       path: /var/run/docker.sock
   - name: modules-cache
     host:
-      path: /data/cache/tl/web
+      path: /data/cache/tl/new_web
 
 ---
 kind: pipeline
@@ -61,19 +62,19 @@ node:
   mode: local_pre
 
 steps:
-#  - name: yarn-install
-#    image: node:18.16.1
-#    volumes:
-#      - name: modules-cache
-#        path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
-#    commands:
-#      - yarn config set registry http://registry.npmjs.org
-#      - yarn install
-#      - yarn run build
+ - name: yarn-install
+   image: node:18.16.1
+   volumes:
+     - name: modules-cache
+       path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
+   commands:
+    #  - pnpm config set registry http://registry.npmjs.org
+     - pnpm install
+     - pnpm run build
 
   - name: build
     image: docker:20.10.7
-#    depends_on: [yarn-install]
+   depends_on: [yarn-install]
     volumes:
       - name: docker
         path: /var/run/docker.sock