From f1dfc83d7c75b8f3c0e56a86bce49c428a908eb1 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Mon, 22 May 2023 09:23:44 +0200 Subject: [PATCH] build:Revert back to cli arguments while specifying custom command --- .drone.yml | 22 ++++++++++++++++++--- .releaserc.json => .releaserc.json.DISABLED | 0 2 files changed, 19 insertions(+), 3 deletions(-) rename .releaserc.json => .releaserc.json.DISABLED (100%) diff --git a/.drone.yml b/.drone.yml index 90ecbfb..cde320c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -53,20 +53,36 @@ steps: npm install \ 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} \ + # --dry-run npx semantic-release \ + --package @semantic-release/exec \ + --package semantic-release \ --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: GIT_APIKEY: from_secret: git_apikey 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 # depends_on: # - Semantic Release (Dry-run) diff --git a/.releaserc.json b/.releaserc.json.DISABLED similarity index 100% rename from .releaserc.json rename to .releaserc.json.DISABLED