build: Include non-dryrun semantic release step
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2023-07-11 21:17:55 +02:00
parent cde06aae36
commit a4ced9e4b4
1 changed files with 23 additions and 1 deletions

View File

@ -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