@varlock/bumpy 1.10.0 → 1.10.1
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.
|
@@ -157,7 +157,7 @@ async function ciPlanCommand(rootDir) {
|
|
|
157
157
|
packageNames: plan.releases.map((r) => r.name)
|
|
158
158
|
};
|
|
159
159
|
else {
|
|
160
|
-
const { findUnpublishedPackages } = await import("./publish-
|
|
160
|
+
const { findUnpublishedPackages } = await import("./publish-BHHWtI1W.mjs");
|
|
161
161
|
const unpublished = await findUnpublishedPackages(packages, config);
|
|
162
162
|
if (unpublished.length > 0) output = {
|
|
163
163
|
mode: "publish",
|
|
@@ -228,7 +228,7 @@ async function ciReleaseCommand(rootDir, opts) {
|
|
|
228
228
|
if (bumpFiles.length === 0) {
|
|
229
229
|
log.info("No pending bump files — checking for unpublished packages...");
|
|
230
230
|
const recoveredBumpFiles = recoverDeletedBumpFiles(rootDir);
|
|
231
|
-
const { publishCommand } = await import("./publish-
|
|
231
|
+
const { publishCommand } = await import("./publish-BHHWtI1W.mjs");
|
|
232
232
|
await publishCommand(rootDir, {
|
|
233
233
|
tag: opts.tag,
|
|
234
234
|
recoveredBumpFiles
|
|
@@ -239,7 +239,7 @@ async function ciReleaseCommand(rootDir, opts) {
|
|
|
239
239
|
if (plan.releases.length === 0) {
|
|
240
240
|
log.info("Bump files found but no packages would be released — checking for unpublished packages...");
|
|
241
241
|
const recoveredBumpFiles = recoverDeletedBumpFiles(rootDir);
|
|
242
|
-
const { publishCommand } = await import("./publish-
|
|
242
|
+
const { publishCommand } = await import("./publish-BHHWtI1W.mjs");
|
|
243
243
|
await publishCommand(rootDir, {
|
|
244
244
|
tag: opts.tag,
|
|
245
245
|
recoveredBumpFiles
|
|
@@ -280,7 +280,7 @@ async function autoPublish(rootDir, config, plan, tag) {
|
|
|
280
280
|
], { cwd: rootDir });
|
|
281
281
|
}
|
|
282
282
|
log.step("Running bumpy publish...");
|
|
283
|
-
const { publishCommand } = await import("./publish-
|
|
283
|
+
const { publishCommand } = await import("./publish-BHHWtI1W.mjs");
|
|
284
284
|
await publishCommand(rootDir, { tag });
|
|
285
285
|
}
|
|
286
286
|
/**
|
package/dist/cli.mjs
CHANGED
|
@@ -89,17 +89,17 @@ async function main() {
|
|
|
89
89
|
const subcommand = args[1];
|
|
90
90
|
const ciFlags = parseFlags(args.slice(2));
|
|
91
91
|
if (subcommand === "check") {
|
|
92
|
-
const { ciCheckCommand } = await import("./ci-
|
|
92
|
+
const { ciCheckCommand } = await import("./ci-fXCBOIqu.mjs");
|
|
93
93
|
await ciCheckCommand(rootDir, {
|
|
94
94
|
comment: ciFlags.comment !== void 0 ? ciFlags.comment === true : void 0,
|
|
95
95
|
strict: ciFlags.strict === true,
|
|
96
96
|
noFail: ciFlags["no-fail"] === true
|
|
97
97
|
});
|
|
98
98
|
} else if (subcommand === "plan") {
|
|
99
|
-
const { ciPlanCommand } = await import("./ci-
|
|
99
|
+
const { ciPlanCommand } = await import("./ci-fXCBOIqu.mjs");
|
|
100
100
|
await ciPlanCommand(rootDir);
|
|
101
101
|
} else if (subcommand === "release") {
|
|
102
|
-
const { ciReleaseCommand } = await import("./ci-
|
|
102
|
+
const { ciReleaseCommand } = await import("./ci-fXCBOIqu.mjs");
|
|
103
103
|
await ciReleaseCommand(rootDir, {
|
|
104
104
|
mode: ciFlags["auto-publish"] === true ? "auto-publish" : "version-pr",
|
|
105
105
|
tag: ciFlags.tag,
|
|
@@ -116,7 +116,7 @@ async function main() {
|
|
|
116
116
|
}
|
|
117
117
|
case "publish": {
|
|
118
118
|
const rootDir = await findRoot();
|
|
119
|
-
const { publishCommand } = await import("./publish-
|
|
119
|
+
const { publishCommand } = await import("./publish-BHHWtI1W.mjs");
|
|
120
120
|
await publishCommand(rootDir, {
|
|
121
121
|
dryRun: flags["dry-run"] === true,
|
|
122
122
|
tag: flags.tag,
|
|
@@ -140,7 +140,7 @@ async function main() {
|
|
|
140
140
|
}
|
|
141
141
|
case "--version":
|
|
142
142
|
case "-v":
|
|
143
|
-
console.log(`bumpy 1.10.
|
|
143
|
+
console.log(`bumpy 1.10.1`);
|
|
144
144
|
break;
|
|
145
145
|
case "help":
|
|
146
146
|
case "--help":
|
|
@@ -160,7 +160,7 @@ async function main() {
|
|
|
160
160
|
}
|
|
161
161
|
function printHelp() {
|
|
162
162
|
console.log(`
|
|
163
|
-
${colorize(`🐸 bumpy v1.10.
|
|
163
|
+
${colorize(`🐸 bumpy v1.10.1`, "bold")} - Modern monorepo versioning
|
|
164
164
|
|
|
165
165
|
Usage: bumpy <command> [options]
|
|
166
166
|
|
|
@@ -7,7 +7,7 @@ import { r as runArgsAsync, s as tryRunArgs } from "./shell-C8KgKnMQ.mjs";
|
|
|
7
7
|
import { i as loadFormatter, n as generateChangelogEntry } from "./changelog-A-EwWggW.mjs";
|
|
8
8
|
import { c as pushWithTags, s as hasUncommittedChanges } from "./git-JGLQtk-M.mjs";
|
|
9
9
|
import { t as publishPackages } from "./publish-pipeline-BRnqVylg.mjs";
|
|
10
|
-
import { CI_PLAN_CACHE_PATH } from "./ci-
|
|
10
|
+
import { CI_PLAN_CACHE_PATH } from "./ci-fXCBOIqu.mjs";
|
|
11
11
|
//#region src/core/github-release.ts
|
|
12
12
|
/** Get the current HEAD commit SHA */
|
|
13
13
|
function getHeadSha(rootDir) {
|
|
@@ -206,28 +206,28 @@ async function createDraftRelease(tag, title, body, rootDir, targetSha) {
|
|
|
206
206
|
"--draft"
|
|
207
207
|
];
|
|
208
208
|
if (targetSha) args.push("--target", targetSha);
|
|
209
|
-
await runArgsAsync(args, { cwd: rootDir });
|
|
209
|
+
await withReleaseToken(() => runArgsAsync(args, { cwd: rootDir }));
|
|
210
210
|
}
|
|
211
211
|
/** Update an existing GitHub release's body */
|
|
212
212
|
async function updateReleaseBody(tag, body, rootDir) {
|
|
213
|
-
await runArgsAsync([
|
|
213
|
+
await withReleaseToken(() => runArgsAsync([
|
|
214
214
|
"gh",
|
|
215
215
|
"release",
|
|
216
216
|
"edit",
|
|
217
217
|
tag,
|
|
218
218
|
"--notes",
|
|
219
219
|
body
|
|
220
|
-
], { cwd: rootDir });
|
|
220
|
+
], { cwd: rootDir }));
|
|
221
221
|
}
|
|
222
222
|
/** Finalize a draft release (remove draft status) */
|
|
223
223
|
async function finalizeRelease(tag, rootDir) {
|
|
224
|
-
await runArgsAsync([
|
|
224
|
+
await withReleaseToken(() => runArgsAsync([
|
|
225
225
|
"gh",
|
|
226
226
|
"release",
|
|
227
227
|
"edit",
|
|
228
228
|
tag,
|
|
229
229
|
"--draft=false"
|
|
230
|
-
], { cwd: rootDir });
|
|
230
|
+
], { cwd: rootDir }));
|
|
231
231
|
}
|
|
232
232
|
/** Find draft releases for a package (by name prefix) that are older than the current version */
|
|
233
233
|
async function findStaleDraftReleases(packageName, currentVersion, rootDir) {
|