Browse Source

ad release config

main
Distopico Vegan 6 years ago
parent
commit
b2226b57d9
2 changed files with 15 additions and 2 deletions
  1. +3
    -2
      .gitlab-ci.yml
  2. +12
    -0
      .releaserc.yml

+ 3
- 2
.gitlab-ci.yml View File

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

+ 12
- 0
.releaserc.yml View File

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

Loading…
Cancel
Save