-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
46 lines (42 loc) · 1 KB
/
.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
42
43
44
45
46
workspace:
base: /code
pipeline:
build:
image: node:14-alpine
commands:
- yarn
when:
event: [push, tag]
tests:
image: node:14-alpine
commands:
- yarn run lint
- yarn run test
group: build
when:
status: success
branch: [hotfix/*, release/*, feature/*, support/*, develop]
publish-npm:
image: plugins/npm
secrets: [ npm_auth_token, npm_username, npm_email, npm_password ]
settings:
username:
from_secret: npm_username
token:
from_secret: npm_auth_token
email:
from_secret: npm_email
password:
from_secret: npm_password
group: publish
when:
status: success
branch: [release/*, feature/*, hotfix/*, main]
# notify:
# image: plugins/slack
# channel: bonde_bots
# username: CI - ${DRONE_REPO_NAME}
# secrets: [ slack_webhook ]
# when:
# event: [ push, tag, build, publish, deployment, pull_request ]
# status: [ success, failure ]