ci: determine last release from git tags

pull/166/head v1.5.3
Felix Becker 2017-10-28 14:55:17 -07:00
parent 9ad8a72ffb
commit d336aee927
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,8 @@ cache:
- $HOME/.composer/cache - $HOME/.composer/cache
before_install: before_install:
- git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch --tags
- nvm install 8 - nvm install 8
- nvm use 8 - nvm use 8

View File

@ -53,6 +53,7 @@
"@types/semver": "^5.3.34", "@types/semver": "^5.3.34",
"cz-conventional-changelog": "^2.0.0", "cz-conventional-changelog": "^2.0.0",
"husky": "^0.14.3", "husky": "^0.14.3",
"last-release-git": "0.0.3",
"semantic-release": "^8.2.0", "semantic-release": "^8.2.0",
"tslint": "^5.0.0", "tslint": "^5.0.0",
"typescript": "^2.1.4", "typescript": "^2.1.4",
@ -70,6 +71,9 @@
"path": "./node_modules/cz-conventional-changelog" "path": "./node_modules/cz-conventional-changelog"
} }
}, },
"release": {
"getLastRelease": "last-release-git"
},
"contributes": { "contributes": {
"configuration": { "configuration": {
"type": "object", "type": "object",