MCPcopy Create free account
hub / github.com/lerna/lerna / commitAndTagUpdates

Method commitAndTagUpdates

libs/commands/version/src/index.ts:876–894  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 || "@";

Callers 1

executeMethod · 0.95

Calls 3

isIndependentMethod · 0.80

Tested by

no test coverage detected