From d336aee927a9b30c9b3bd19085c194dfd770c22e Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Sat, 28 Oct 2017 14:55:17 -0700 Subject: [PATCH] ci: determine last release from git tags --- .travis.yml | 2 ++ package.json | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 28f61ec8..8a10cff2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,8 @@ cache: - $HOME/.composer/cache before_install: + - git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/* + - git fetch --tags - nvm install 8 - nvm use 8 diff --git a/package.json b/package.json index c331d3a1..46347a4f 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "@types/semver": "^5.3.34", "cz-conventional-changelog": "^2.0.0", "husky": "^0.14.3", + "last-release-git": "0.0.3", "semantic-release": "^8.2.0", "tslint": "^5.0.0", "typescript": "^2.1.4", @@ -70,6 +71,9 @@ "path": "./node_modules/cz-conventional-changelog" } }, + "release": { + "getLastRelease": "last-release-git" + }, "contributes": { "configuration": { "type": "object",