@moku-labs/ci 1.1.2 → 1.1.3
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/README.md +1 -1
- package/dist/release.mjs +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,7 +114,7 @@ flowchart LR
|
|
|
114
114
|
| Command | When | What it does |
|
|
115
115
|
|---|---|---|
|
|
116
116
|
| `bun run release:setup` | once per project | Idempotent wizard: workflows, script contract, first publish, first tag, trusted publisher, branch ruleset, then `doctor`. `--dry-run` prints every action and changes nothing. |
|
|
117
|
-
| `bun run release:doctor` | any time |
|
|
117
|
+
| `bun run release:doctor` | any time | Changes nothing in the project; it only runs `git fetch --tags` first. Eleven checks, one line each, and the exact `fix:` command for every red line. `--json` for machines. |
|
|
118
118
|
| `bun run release <patch\|minor\|major\|prerelease>` | each release | Refuses unless the tree is clean and `HEAD == origin/main`. Dispatches `publish.yml`, watches the run, verifies the version and dist-tag on npm. |
|
|
119
119
|
|
|
120
120
|
The scripts are plain aliases of the `moku-release` bin. Internals and the list of checks:
|
package/dist/release.mjs
CHANGED
|
@@ -1671,6 +1671,11 @@ async function evaluate(check, ctx) {
|
|
|
1671
1671
|
async function runDoctor(options) {
|
|
1672
1672
|
const { ctx, ui, json = false, checks = allChecks } = options;
|
|
1673
1673
|
const entries = [];
|
|
1674
|
+
await ctx.exec.capture("git", [
|
|
1675
|
+
"fetch",
|
|
1676
|
+
"--tags",
|
|
1677
|
+
"--prune"
|
|
1678
|
+
]);
|
|
1674
1679
|
for (const check of checks) entries.push(await evaluate(check, ctx));
|
|
1675
1680
|
const failed = entries.some((entry) => entry.status === "fail");
|
|
1676
1681
|
if (json) {
|
|
@@ -1848,11 +1853,6 @@ async function runRelease(options) {
|
|
|
1848
1853
|
ui.error("package.json is missing, malformed, or has no `name`");
|
|
1849
1854
|
return 1;
|
|
1850
1855
|
}
|
|
1851
|
-
await ctx.exec.capture("git", [
|
|
1852
|
-
"fetch",
|
|
1853
|
-
"--tags",
|
|
1854
|
-
"--prune"
|
|
1855
|
-
]);
|
|
1856
1856
|
if (!await preflight(ctx, ui)) return 1;
|
|
1857
1857
|
const declared = repositoryUrlOf(manifest);
|
|
1858
1858
|
const ownerRepo = declared === void 0 ? void 0 : ownerRepoFrom(declared);
|