-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
41 lines (38 loc) · 787 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
pipeline:
restore_cache:
image: drillster/drone-volume-cache:latest
restore: true
mount:
- ./node_modules
volumes:
- /tmp/cache:/cache
build:
image: node:9.5.0
entrypoint: []
commands:
- npm install
- npm run build
publish:
image: plugins/npm
secrets:
- npm_username
- npm_password
- npm_email
environment:
- NPM_USERNAME=${NPM_USERNAME}
- NPM_PASSWORD=${NPM_PASSWORD}
- NPM_EMAIL=${NPM_EMAIL}
commands:
- /bin/drone-npm
- npm publish 2>&1 || true
when:
event: push
branch:
- master
rebuild_cache:
image: drillster/drone-volume-cache:latest
rebuild: true
mount:
- ./node_modules
volumes:
- /tmp/cache:/cache