Skip to content

Commit d336aee

Browse files
committed
ci: determine last release from git tags
1 parent 9ad8a72 commit d336aee

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ cache:
1313
- $HOME/.composer/cache
1414

1515
before_install:
16+
- git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
17+
- git fetch --tags
1618
- nvm install 8
1719
- nvm use 8
1820

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"@types/semver": "^5.3.34",
5454
"cz-conventional-changelog": "^2.0.0",
5555
"husky": "^0.14.3",
56+
"last-release-git": "0.0.3",
5657
"semantic-release": "^8.2.0",
5758
"tslint": "^5.0.0",
5859
"typescript": "^2.1.4",
@@ -70,6 +71,9 @@
7071
"path": "./node_modules/cz-conventional-changelog"
7172
}
7273
},
74+
"release": {
75+
"getLastRelease": "last-release-git"
76+
},
7377
"contributes": {
7478
"configuration": {
7579
"type": "object",

0 commit comments

Comments
 (0)