@edifice.io/cli 1.6.0-develop.10 → 1.6.0-develop.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/publish/index.js +5 -10
package/package.json
CHANGED
package/src/publish/index.js
CHANGED
|
@@ -44,13 +44,7 @@ export const publish = async (options) => {
|
|
|
44
44
|
// Filter tags based on whether the branch is a release or pre-release
|
|
45
45
|
.filter((t) => {
|
|
46
46
|
const isPrereleaseTag = semver.prerelease(t) !== null;
|
|
47
|
-
|
|
48
|
-
// For prerelease branches, only include tags for that branch
|
|
49
|
-
if (branchConfig.prerelease) {
|
|
50
|
-
return isPrereleaseTag && prereleaseBranch === branchName;
|
|
51
|
-
}
|
|
52
|
-
// For main branch, exclude all prereleases
|
|
53
|
-
return !isPrereleaseTag;
|
|
47
|
+
return branchConfig.prerelease ? isPrereleaseTag : !isPrereleaseTag;
|
|
54
48
|
})
|
|
55
49
|
// sort by latest
|
|
56
50
|
// @ts-ignore
|
|
@@ -105,7 +99,6 @@ export const publish = async (options) => {
|
|
|
105
99
|
).all.filter((c) => {
|
|
106
100
|
const exclude = [
|
|
107
101
|
c.message.startsWith("Merge branch "), // No merge commits
|
|
108
|
-
c.message.includes("version & publish"), // No version bump commits
|
|
109
102
|
c.message.startsWith(releaseCommitMsg("")), // No example update commits
|
|
110
103
|
].some(Boolean);
|
|
111
104
|
|
|
@@ -162,6 +155,7 @@ export const publish = async (options) => {
|
|
|
162
155
|
RELEASE_ALL = true;
|
|
163
156
|
}
|
|
164
157
|
}
|
|
158
|
+
|
|
165
159
|
return releaseLevel;
|
|
166
160
|
},
|
|
167
161
|
-1,
|
|
@@ -397,6 +391,7 @@ export const publish = async (options) => {
|
|
|
397
391
|
|
|
398
392
|
console.info();
|
|
399
393
|
console.info("Committing changes...");
|
|
394
|
+
//execSync(`git add -A && git commit -m "${releaseCommitMsg(version)}"`);
|
|
400
395
|
execSync(
|
|
401
396
|
`git add -A && git reset -- ${changedPackages
|
|
402
397
|
.map((pkg) => path.resolve(rootDir, pkg.packageDir, "package.json"))
|
|
@@ -407,12 +402,12 @@ export const publish = async (options) => {
|
|
|
407
402
|
.map((pkg) => path.resolve(rootDir, pkg.packageDir, "package.json"))
|
|
408
403
|
.join(" ")}`,
|
|
409
404
|
);
|
|
410
|
-
execSync(`git commit -m "${releaseCommitMsg(version)}" --allow-empty
|
|
405
|
+
execSync(`git commit -m "${releaseCommitMsg(version)}" --allow-empty`);
|
|
411
406
|
console.info(" Committed Changes.");
|
|
412
407
|
|
|
413
408
|
console.info();
|
|
414
409
|
console.info("Pushing changes...");
|
|
415
|
-
execSync(
|
|
410
|
+
execSync("git push");
|
|
416
411
|
console.info(" Changes pushed.");
|
|
417
412
|
|
|
418
413
|
console.info();
|