持续集成
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
b670742432
commit
3aefd8c2cf
38
.drone.yml
38
.drone.yml
|
@ -4,28 +4,20 @@ type: docker # 定义管道类型
|
|||
name: default # 定义管道名称
|
||||
|
||||
|
||||
volumes:
|
||||
- name: node_modules # 数据卷名称
|
||||
# Host Volume, 挂载到宿主机上的卷轴
|
||||
host:
|
||||
# 宿主机的绝对路径
|
||||
path: /home/drone/cache/blog/node_modules
|
||||
|
||||
|
||||
steps:
|
||||
- name: public-npm # 步骤名称
|
||||
image: node:12.22.5 # 使用镜像和版本
|
||||
environment:
|
||||
NPM:
|
||||
from_secret: npm
|
||||
commands:
|
||||
- pwd # 查看当前目录 `/drone/src`
|
||||
- ls -alt
|
||||
- npm config set registry https://registry.npmjs.org # 切换官方仓库
|
||||
- npm config set -- $NPM # 切换官方仓库
|
||||
- npm publish --access public # 发布
|
||||
when:
|
||||
event: tag
|
||||
# - name: public-npm # 步骤名称
|
||||
# image: node:12.22.5 # 使用镜像和版本
|
||||
# environment:
|
||||
# NPM:
|
||||
# from_secret: npm
|
||||
# commands:
|
||||
# - pwd # 查看当前目录 `/drone/src`
|
||||
# - ls -alt
|
||||
# - npm config set registry https://registry.npmjs.org # 切换官方仓库
|
||||
# - npm config set -- $NPM # 切换官方仓库
|
||||
# - npm publish --access public # 发布
|
||||
# when:
|
||||
# event: tag
|
||||
|
||||
- name: public-dllcnx # 步骤名称
|
||||
image: node:12.22.5 # 使用镜像和版本
|
||||
|
@ -41,8 +33,8 @@ steps:
|
|||
- npm config set -- $DLLCNX_NPM
|
||||
# 切换私有仓库
|
||||
- npm publish # 发布
|
||||
when:
|
||||
event: tag
|
||||
# when:
|
||||
# event: tag
|
||||
|
||||
- name: deploy-project
|
||||
image: appleboy/drone-scp
|
||||
|
|
Loading…
Reference in New Issue