-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
52 lines (47 loc) · 941 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
42
43
44
45
46
47
48
49
50
51
52
kind: pipeline
type: docker
name: version_bump
trigger:
branch:
- main
event:
exclude:
- pull_request
- tag
- promote
- rollback
steps:
- name: Update the package version
image: plugins/npm
commands:
- git config --global user.email "bot@cs3community.org"
- git config --global user.name "cs3org-bot"
- npm version patch -m "[skip ci] Release %s to npm"
- name: Push back the new version into the repo
image: appleboy/drone-git-push
settings:
remote_name: upstream
branch: main
remote: git@github.com:cs3org/node-cs3apis.git
followtags: true
ssh_key:
from_secret: ssh_key
---
kind: pipeline
type: docker
name: publish
trigger:
event:
include:
- tag
steps:
- name: npm_publish
image: plugins/npm
settings:
access: public
username:
from_secret: npm_username
token:
from_secret: npm_token
email:
from_secret: npm_email