Change .drone.yml
This commit is contained in:
parent
2a960911f2
commit
ed89a24031
20
.drone.yml
20
.drone.yml
@ -19,16 +19,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
# Other branches
|
|
||||||
- name: test
|
|
||||||
image: node:18
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
exclude:
|
|
||||||
- main
|
|
||||||
commands:
|
|
||||||
- npm run lint
|
|
||||||
|
|
||||||
- name: rebuild-cache
|
- name: rebuild-cache
|
||||||
image: drillster/drone-volume-cache
|
image: drillster/drone-volume-cache
|
||||||
volumes:
|
volumes:
|
||||||
@ -39,6 +29,16 @@ steps:
|
|||||||
mount:
|
mount:
|
||||||
- ./node_modules
|
- ./node_modules
|
||||||
|
|
||||||
|
# Other branches
|
||||||
|
- name: test
|
||||||
|
image: node:18
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
commands:
|
||||||
|
- npm run lint
|
||||||
|
|
||||||
# Main branches
|
# Main branches
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
Reference in New Issue
Block a user