Drone plugin for making semantic releases based on https://github.com/semantic-release/semantic-release. With some added twists ofc.
See commit message format to use it.
Add the following to the drone configuration
kind: pipeline
name: default
steps:
- name: semantic-release
image: cenk1cenk2/drone-lerna
settings:
# arguments: -- # semantic release
add_apk: # install apk packages for exec step of semantic release
add_modules: # install node packages if desired
git_method: gh # set for git authentication with gh (Github), gl (GitLab), bb (BitBucket), cr (Credentials)
# arguments: -- # arguments for passing to the semantic-release
git_user_name: bot # semantic release committer name (git config user.name), defaults to semantic-release
git_user_email: bot@example.com # semantic release committer email (git config user.email)
github_token: # semantic release token (for authentication)
from_secret: github_token
npm_token: # semantic release token (for authentication)
from_secret: npm_token
or for BitBucket
bitbucket_token: # semantic release token (for authentication)
from_secret: token
or for GitLab
gitlab_token: # semantic release token (for authentication)
from_secret: token
or for any git server (including BitBucket cloud which does not support tokens):
git_login: bot
git_password:
from_secret: password
Runs on master branch only. Skips any actions below while on other branches.
- Runs
lerna publish
has support for GIT for using semantic release.