oh-my-customcode 1.0.12 → 1.0.13
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/dist/cli/index.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -315,15 +315,30 @@ steps:
|
|
|
315
315
|
- Previous tag is ahead of source version (e.g., tag v0.136.1, package.json 0.136.0): use next available skip-version (0.136.2)
|
|
316
316
|
|
|
317
317
|
2. Release notes via omcustom-release-notes skill
|
|
318
|
-
3.
|
|
319
|
-
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
318
|
+
3. Adapt release mechanism to project (determines how steps 3-5 execute):
|
|
319
|
+
- npm project with auto-tag.yml (this repo — release/v* PR pattern):
|
|
320
|
+
a. mgr-gitnerd creates release/v{NEW} branch from develop with the version-bump commit
|
|
321
|
+
b. mgr-gitnerd creates PR: gh pr create --base develop --head release/v{NEW} --title "chore(release): bump to v{NEW}"
|
|
322
|
+
c. mgr-gitnerd merges PR (admin merge required due to branch protection)
|
|
323
|
+
d. DO NOT manually git tag or gh release create.
|
|
324
|
+
auto-tag.yml fires on release/v* PR merge → creates tag → closes linked issues → closes milestone → deletes release branch.
|
|
325
|
+
release.yml fires on the tag → npm publish + GitHub Release creation.
|
|
326
|
+
Milestone close and issue close are handled downstream by auto-tag.yml — do NOT close them manually.
|
|
327
|
+
- Non-npm / no auto-tag.yml:
|
|
328
|
+
mgr-gitnerd: git tag v{NEW} && git push origin v{NEW}
|
|
329
|
+
mgr-gitnerd: gh release create v{NEW} (with release notes)
|
|
330
|
+
Then proceed with items 4-5 below.
|
|
331
|
+
|
|
332
|
+
4. Close milestone (non-auto-tag projects only — auto-tag.yml handles this for npm+PR projects):
|
|
333
|
+
gh api repos/{owner}/{repo}/milestones/{n} --method PATCH --field state=closed
|
|
334
|
+
|
|
335
|
+
5. Close verify-ready issues (non-auto-tag projects only — auto-tag.yml handles this for npm+PR projects):
|
|
336
|
+
gh issue close {n} --comment "Fixed in v{version}"
|
|
323
337
|
Label needs-review issues as "Deferred from v{version}"
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
338
|
+
|
|
339
|
+
6. npm publish verification (npm projects only):
|
|
340
|
+
After auto-tag.yml + release.yml complete (verified in ci-check step):
|
|
341
|
+
npm view <pkg> version → must equal v{NEW}
|
|
327
342
|
description: "Git tag + GitHub Release + close milestone/issues (with mandatory version sync verification)"
|
|
328
343
|
depends_on: deep-verify
|
|
329
344
|
|
|
@@ -334,11 +349,19 @@ steps:
|
|
|
334
349
|
1. Check if .github/workflows/ has CI workflows
|
|
335
350
|
If NOT: skip with "No CI configured. Skipping." and continue.
|
|
336
351
|
2. If CI exists:
|
|
337
|
-
- gh run list --limit
|
|
352
|
+
- gh run list --limit 10
|
|
338
353
|
- Wait for runs triggered by the new tag/push
|
|
339
354
|
- If failures: diagnose, fix, re-verify
|
|
340
|
-
3. For npm projects
|
|
341
|
-
|
|
355
|
+
3. For npm projects with auto-tag.yml: MANDATORY additional check:
|
|
356
|
+
gh run list --workflow auto-tag.yml --limit 1 --json conclusion,displayTitle
|
|
357
|
+
→ conclusion MUST be "success" before declaring release complete.
|
|
358
|
+
If auto-tag.yml concluded "failure": diagnose root cause. Do NOT retry with manual git tag.
|
|
359
|
+
Common causes:
|
|
360
|
+
- Tag already exists (manual tag pushed before PR merge — fix: remove manual tag from release delegation)
|
|
361
|
+
- Branch naming mismatch (branch not matching release/v* pattern — fix: verify branch name)
|
|
362
|
+
Report: "[ci-check] auto-tag.yml: {conclusion}" as mandatory line in CI status report.
|
|
363
|
+
4. For npm projects: verify npm publish succeeded (npm view <pkg> version)
|
|
364
|
+
5. Report final CI status.
|
|
342
365
|
description: "Post-release CI verification and fix loop"
|
|
343
366
|
depends_on: release
|
|
344
367
|
|
package/templates/manifest.json
CHANGED
|
@@ -315,15 +315,30 @@ steps:
|
|
|
315
315
|
- Previous tag is ahead of source version (e.g., tag v0.136.1, package.json 0.136.0): use next available skip-version (0.136.2)
|
|
316
316
|
|
|
317
317
|
2. Release notes via omcustom-release-notes skill
|
|
318
|
-
3.
|
|
319
|
-
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
318
|
+
3. Adapt release mechanism to project (determines how steps 3-5 execute):
|
|
319
|
+
- npm project with auto-tag.yml (this repo — release/v* PR pattern):
|
|
320
|
+
a. mgr-gitnerd creates release/v{NEW} branch from develop with the version-bump commit
|
|
321
|
+
b. mgr-gitnerd creates PR: gh pr create --base develop --head release/v{NEW} --title "chore(release): bump to v{NEW}"
|
|
322
|
+
c. mgr-gitnerd merges PR (admin merge required due to branch protection)
|
|
323
|
+
d. DO NOT manually git tag or gh release create.
|
|
324
|
+
auto-tag.yml fires on release/v* PR merge → creates tag → closes linked issues → closes milestone → deletes release branch.
|
|
325
|
+
release.yml fires on the tag → npm publish + GitHub Release creation.
|
|
326
|
+
Milestone close and issue close are handled downstream by auto-tag.yml — do NOT close them manually.
|
|
327
|
+
- Non-npm / no auto-tag.yml:
|
|
328
|
+
mgr-gitnerd: git tag v{NEW} && git push origin v{NEW}
|
|
329
|
+
mgr-gitnerd: gh release create v{NEW} (with release notes)
|
|
330
|
+
Then proceed with items 4-5 below.
|
|
331
|
+
|
|
332
|
+
4. Close milestone (non-auto-tag projects only — auto-tag.yml handles this for npm+PR projects):
|
|
333
|
+
gh api repos/{owner}/{repo}/milestones/{n} --method PATCH --field state=closed
|
|
334
|
+
|
|
335
|
+
5. Close verify-ready issues (non-auto-tag projects only — auto-tag.yml handles this for npm+PR projects):
|
|
336
|
+
gh issue close {n} --comment "Fixed in v{version}"
|
|
323
337
|
Label needs-review issues as "Deferred from v{version}"
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
338
|
+
|
|
339
|
+
6. npm publish verification (npm projects only):
|
|
340
|
+
After auto-tag.yml + release.yml complete (verified in ci-check step):
|
|
341
|
+
npm view <pkg> version → must equal v{NEW}
|
|
327
342
|
description: "Git tag + GitHub Release + close milestone/issues (with mandatory version sync verification)"
|
|
328
343
|
depends_on: deep-verify
|
|
329
344
|
|
|
@@ -334,11 +349,19 @@ steps:
|
|
|
334
349
|
1. Check if .github/workflows/ has CI workflows
|
|
335
350
|
If NOT: skip with "No CI configured. Skipping." and continue.
|
|
336
351
|
2. If CI exists:
|
|
337
|
-
- gh run list --limit
|
|
352
|
+
- gh run list --limit 10
|
|
338
353
|
- Wait for runs triggered by the new tag/push
|
|
339
354
|
- If failures: diagnose, fix, re-verify
|
|
340
|
-
3. For npm projects
|
|
341
|
-
|
|
355
|
+
3. For npm projects with auto-tag.yml: MANDATORY additional check:
|
|
356
|
+
gh run list --workflow auto-tag.yml --limit 1 --json conclusion,displayTitle
|
|
357
|
+
→ conclusion MUST be "success" before declaring release complete.
|
|
358
|
+
If auto-tag.yml concluded "failure": diagnose root cause. Do NOT retry with manual git tag.
|
|
359
|
+
Common causes:
|
|
360
|
+
- Tag already exists (manual tag pushed before PR merge — fix: remove manual tag from release delegation)
|
|
361
|
+
- Branch naming mismatch (branch not matching release/v* pattern — fix: verify branch name)
|
|
362
|
+
Report: "[ci-check] auto-tag.yml: {conclusion}" as mandatory line in CI status report.
|
|
363
|
+
4. For npm projects: verify npm publish succeeded (npm view <pkg> version)
|
|
364
|
+
5. Report final CI status.
|
|
342
365
|
description: "Post-release CI verification and fix loop"
|
|
343
366
|
depends_on: release
|
|
344
367
|
|