build:Test with configuration in .releaserc.json
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2023-05-22 09:09:50 +02:00
parent 978f39d45b
commit 5b950a3834
2 changed files with 12 additions and 1 deletions

View File

@ -54,13 +54,13 @@ steps:
semantic-release \
@semantic-release/commit-analyzer \
@semantic-release/release-notes-generator\
@semantic-release/exec \
@semantic-release/git
- |
export GIT_CREDENTIALS=$${GIT_USERNAME}:$${GIT_APIKEY}
- |
npx semantic-release \
--branches ${DRONE_BRANCH} \
--plugins @semantic-release/commit-analyzer,@semantic-release/release-notes-generator,@semantic-release/git \
--dry-run
environment:
GIT_APIKEY:

11
.releaserc.json Normal file
View File

@ -0,0 +1,11 @@
{
"plugins": [
["@semantic-release/commit-analyzer"],
["@semantic-release/release-notes-generator"],
["@semantic-release/exec", {
"prepareCmd": "export SEMANTICRELEASE_NEXTRELEASEVERSION=${nextRelease.version}",
"publishCmd": "echo $SEMANTICRELEASE_NEXTRELEASEVERSION"
}],
["@semantic-release/git"]
]
}