From b2226b57d9b6f5f64c0d1d250701c95538331fad Mon Sep 17 00:00:00 2001 From: Distopico Vegan Date: Mon, 12 Nov 2018 18:52:27 -0500 Subject: [PATCH] ad release config --- .gitlab-ci.yml | 5 +++-- .releaserc.yml | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .releaserc.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1dd7941c..dcdea510 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -99,6 +99,7 @@ release: - export NVM_DIR="$HOME/.nvm" &&. "$NVM_DIR/nvm.sh" && nvm install 8 cache: {} script: - - npm install -g semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/gitlab + - npm install -g semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/exec @semantic-release/git @semantic-release/gitlab - git checkout $CI_COMMIT_SHA - - semantic-release -p @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/gitlab + - semantic-release + - git checkout develop && git rebase master && git push develop diff --git a/.releaserc.yml b/.releaserc.yml new file mode 100644 index 00000000..0261877c --- /dev/null +++ b/.releaserc.yml @@ -0,0 +1,12 @@ +plugins: + - "@semantic-release/commit-analyzer" + - "@semantic-release/release-notes-generator" + - "@semantic-release/changelog" + - "@semantic-release/exec": + - prepareCmd: 'VERSIONCODE=`grep "versionCode .*" app/build.gradle | sed "s/versionCode //"` && sed -i "s/versionCode .*$/versionCode $(($VERSIONCODE + 1))/; s/versionName .*$/versionName \"${nextRelease.version}"/" app/build.gradle' + - "@semantic-release/git": + - assets: + - CHANGELOG.md + - app/build.gradle + - message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + - "@semantic-release/gitlab"