From a4ced9e4b44e5ad3baa803f4681f2024a928a716 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Tue, 11 Jul 2023 21:17:55 +0200 Subject: [PATCH] build: Include non-dryrun semantic release step --- .drone.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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