diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..a98967f --- /dev/null +++ b/.releaserc @@ -0,0 +1,22 @@ +{ + "debug": true, + "tagFormat": '${version}', + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/changelog", + [ + "@semantic-release/exec", + { + "prepareCmd": "bump2version --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch" + } + ], + [ + "@semantic-release/git", + { + "message": "chore(release): ${nextRelease.version} release notes\n\n${nextRelease.notes}" + } + ], + "@semantic-release/github" + ] +} diff --git a/.travis.yml b/.travis.yml index 3e24663..0f49835 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,12 +27,13 @@ script: - bundle exec rake before_deploy: -- pip install bump2version -- nvm install 12 -- npm install @semantic-release/changelog -- npm install @semantic-release/exec -- npm install @semantic-release/git -- npm install @semantic-release/github + - pip install bump2version + - npm install -g semantic-release + - npm install -g @semantic-release/changelog + - npm install -g @semantic-release/exec + - npm install -g @semantic-release/git + - npm install -g @semantic-release/github + - npm install -g @semantic-release/commit-analyzer deploy: - provider: script diff --git a/package.json b/package.json deleted file mode 100644 index 8023cd4..0000000 --- a/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "vpc-ruby-sdk", - "version": "0.2.0", - "description": "Ruby client library to interact with various IBM Cloud VPC APIs", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/IBM/vpc-ruby-sdk/issues" - }, - "homepage": "https://github.com/IBM/vpc-ruby-sdk#readme" -}