build:Revert back to cli arguments while specifying custom command
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2023-05-22 09:23:44 +02:00
parent 5b950a3834
commit f1dfc83d7c
2 changed files with 19 additions and 3 deletions

View File

@ -53,20 +53,36 @@ steps:
npm install \ npm install \
semantic-release \ semantic-release \
@semantic-release/commit-analyzer \ @semantic-release/commit-analyzer \
@semantic-release/release-notes-generator\
@semantic-release/exec \ @semantic-release/exec \
@semantic-release/git
- | - |
export GIT_CREDENTIALS=$${GIT_USERNAME}:$${GIT_APIKEY} export GIT_CREDENTIALS=$${GIT_USERNAME}:$${GIT_APIKEY}
- | - |
# npx semantic-release \
# --branches ${DRONE_BRANCH} \
# --dry-run
npx semantic-release \ npx semantic-release \
--package @semantic-release/exec \
--package semantic-release \
--branches ${DRONE_BRANCH} \ --branches ${DRONE_BRANCH} \
--dry-run --dry-run \
--plugins @semantic-release/commit-analyzer,@semantic-release/exec \
--analyzeCommits @semantic-release/commit-analyzer \
--verifyRelease @semantic-release/exec \
--verifyReleaseCmd 'echo ${nextRelease.version} > .\.version'
environment: environment:
GIT_APIKEY: GIT_APIKEY:
from_secret: git_apikey from_secret: git_apikey
GIT_USERNAME: djpbessems GIT_USERNAME: djpbessems
- name: Print version
depends_on:
- Semantic Release (Dry-run)
image: bv11-cr01.bessems.eu/library/packer-extended
pull: always
commands:
- |
cat .version
# - name: Install Ansible Galaxy collections # - name: Install Ansible Galaxy collections
# depends_on: # depends_on:
# - Semantic Release (Dry-run) # - Semantic Release (Dry-run)