|
@@ -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
|