()
| 874 | } |
| 875 | |
| 876 | async commitAndTagUpdates() { |
| 877 | let tags: string[] = []; |
| 878 | |
| 879 | if (this.project.isIndependent()) { |
| 880 | tags = await this.gitCommitAndTagVersionForUpdates(); |
| 881 | } else { |
| 882 | tags = await this.gitCommitAndTagVersion(); |
| 883 | } |
| 884 | |
| 885 | this.tags = tags; |
| 886 | |
| 887 | // run the postversion script for each update |
| 888 | await pMap(this.packagesToVersion!, (pkg) => this.runPackageLifecycle!(pkg, "postversion")); |
| 889 | |
| 890 | if (!this.hasRootedLeaf) { |
| 891 | // run postversion, if set, in the root directory |
| 892 | await this.runRootLifecycle!("postversion"); |
| 893 | } |
| 894 | } |
| 895 | |
| 896 | async gitCommitAndTagVersionForUpdates() { |
| 897 | const tagVersionSeparator = this.options.tagVersionSeparator || "@"; |
no test coverage detected