Commit 93b751c4 authored by 张耀's avatar 张耀

ci:

使用yarn获取依赖
parent 1882f514
...@@ -31,9 +31,9 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行 ...@@ -31,9 +31,9 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
image: registry.cn-qingdao.aliyuncs.com/wod/devops-node:16.16.0-slim image: registry.cn-qingdao.aliyuncs.com/wod/devops-node:16.16.0-slim
# 将宿主机中文件夹挂载到容器中,宿主机文件夹中的文件会被容器访问并修改,起到使用缓存的作用,避免每次运行都要重现下载依赖,提高运行速度 # 将宿主机中文件夹挂载到容器中,宿主机文件夹中的文件会被容器访问并修改,起到使用缓存的作用,避免每次运行都要重现下载依赖,提高运行速度
commands: commands:
- npm install -g cnpm --registry=https://registry.npm.taobao.org # - npm install -g cnpm --registry=https://registry.npm.taobao.org
- cnpm install # - cnpm install
# - yarn - yarn
- export NODE_ENV=production - export NODE_ENV=production
- yarn build - yarn build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment