()
| 917 | } |
| 918 | |
| 919 | async gitCommitAndTagVersion() { |
| 920 | const version = this.globalVersion; |
| 921 | const tag = `${this.tagPrefix}${version}`; |
| 922 | const message = this.options.message |
| 923 | ? this.options.message.replace(/%s/g, tag).replace(/%v/g, version!) |
| 924 | : tag; |
| 925 | |
| 926 | if (await this.hasChanges()) { |
| 927 | await gitCommit(message, this.gitOpts!, this.execOpts); |
| 928 | } |
| 929 | |
| 930 | await gitTag(tag, this.gitOpts!, this.execOpts, this.options.gitTagCommand); |
| 931 | |
| 932 | return [tag]; |
| 933 | } |
| 934 | |
| 935 | gitPushToRemote() { |
| 936 | this.logger.info("git", "Pushing tags..."); |
no test coverage detected