fix strategy 'Tag' versioning (#287)

* fix - remove \n in getTag method

* build ts

* recommit
This commit is contained in:
Estellise Yukihime 2021-09-07 00:31:24 +08:00 committed by GitHub
parent 3ebdb0e678
commit c317d144c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 1 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View File

@ -265,7 +265,7 @@ export default class Versioning {
* Get the tag if there is one pointing at HEAD * Get the tag if there is one pointing at HEAD
*/ */
static async getTag() { static async getTag() {
return this.git(['tag', '--points-at', 'HEAD']); return (await this.git(['tag', '--points-at', 'HEAD'])).trim();
} }
/** /**