diff --git a/.drone.yml b/.drone.yml index 4f5f582..8791104 100644 --- a/.drone.yml +++ b/.drone.yml @@ -128,4 +128,26 @@ steps: pull: always commands: - | - echo 'foo' + apt-get update + - | + apt-get install -y --no-install-recommends \ + git-core \ + ca-certificates + - | + npm install \ + semantic-release \ + @semantic-release/commit-analyzer \ + @semantic-release/git \ + @semantic-release/release-notes-generator + - | + export GIT_CREDENTIALS=$${GIT_USERNAME}:$${GIT_APIKEY} + - | + npx semantic-release \ + --branches ${DRONE_BRANCH} \ + --tag-format "v\$${version}" \ + --dry-run \ + --plugins @semantic-release/commit-analyzer,@semantic-release/release-notes-generator,@semantic-release/git + environment: + GIT_APIKEY: + from_secret: git_apikey + GIT_USERNAME: djpbessems