living-together/.drone.yml
2022-02-20 11:56:05 +08:00

32 lines
539 B
YAML

kind: pipeline
type: docker
name: LivingTogether-Lab
workspace:
path: /drone/src
steps:
- name: npm build
pull: if-not-exists
image: node
volumes:
- name: publish
path: /drone/src/build
- name: node_modules
path: /drone/src/node_modules
commands:
- npm config set registry https://registry.npm.taobao.org
- npm ci
- npm run release-lab
volumes:
- name: publish
host:
path: /http/living-together-lab
- name: node_modules
host:
path: /tmp/node_modules/living-together
trigger:
branch:
- master