cenk1cenk2 / old-drone-lerna

Lerna in Drone mostly for semantic release purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drone-lerna

Build Status Docker Pulls Docker Image Size (latest by date) Docker Image Version (latest by date) GitHub last commit

Drone plugin for making semantic releases based on https://github.com/semantic-release/semantic-release. With some added twists ofc.

Usage

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

What it does

Runs on master branch only. Skips any actions below while on other branches.

  • Runs lerna publish has support for GIT for using semantic release.

About

Lerna in Drone mostly for semantic release purposes.

License:MIT License


Languages

Language:Shell 79.8%Language:JavaScript 12.6%Language:Dockerfile 7.5%