@mks2508/better-logger 0.0.2-alpha.2 β 0.3.0
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/.claude/settings.local.json +18 -2
- package/.github/workflows/ci-quality.yml +357 -0
- package/.github/workflows/docs-demo.yml +119 -0
- package/.github/workflows/releases-core.yml +512 -0
- package/.github/workflows/releases-full.yml +582 -0
- package/.github/{workflows β workflows-backup}/ci.yml +12 -110
- package/.github/workflows-backup/nightly.yml +196 -0
- package/.github/workflows-backup/release-optimized.yml +373 -0
- package/.release-notes-0.2.0.md +129 -0
- package/.yamllint +28 -0
- package/CHANGELOG.json +783 -0
- package/CLAUDE.md +92 -1
- package/README.md +198 -490
- package/bun.lock +323 -0
- package/demo.html +9 -2
- package/dist/.tsbuildinfo +1 -0
- package/dist/Logger.d.ts +272 -0
- package/dist/Logger.d.ts.map +1 -0
- package/dist/Logger.js +680 -0
- package/dist/ScopedLogger.d.ts +126 -0
- package/dist/ScopedLogger.d.ts.map +1 -0
- package/dist/ScopedLogger.js +234 -0
- package/dist/chunks/Logger-BpeuYIxR.js +2 -0
- package/dist/chunks/Logger-BpeuYIxR.js.map +1 -0
- package/dist/chunks/Logger-Didxtr23.js +3275 -0
- package/dist/chunks/Logger-Didxtr23.js.map +1 -0
- package/dist/chunks/RemoteLogHandler-CjWpWZGl.js +33 -0
- package/dist/chunks/RemoteLogHandler-CjWpWZGl.js.map +1 -0
- package/dist/chunks/RemoteLogHandler-ymkQ97xl.js +2 -0
- package/dist/chunks/RemoteLogHandler-ymkQ97xl.js.map +1 -0
- package/dist/chunks/environment-Bxbnw4pd.js +544 -0
- package/dist/chunks/environment-Bxbnw4pd.js.map +1 -0
- package/dist/chunks/environment-Dm66zOML.js +4 -0
- package/dist/chunks/environment-Dm66zOML.js.map +1 -0
- package/dist/chunks/formatting-C0riPC5_.js +95 -0
- package/dist/chunks/formatting-C0riPC5_.js.map +1 -0
- package/dist/chunks/formatting-DNCAV66-.js +2 -0
- package/dist/chunks/formatting-DNCAV66-.js.map +1 -0
- package/dist/cli/CommandProcessor.d.ts +103 -0
- package/dist/cli/CommandProcessor.d.ts.map +1 -0
- package/dist/cli/CommandProcessor.js +184 -0
- package/dist/cli/commands/ConfigCommand.d.ts +17 -0
- package/dist/cli/commands/ConfigCommand.d.ts.map +1 -0
- package/dist/cli/commands/ConfigCommand.js +88 -0
- package/dist/cli/commands/ExportCommand.d.ts +51 -0
- package/dist/cli/commands/ExportCommand.d.ts.map +1 -0
- package/dist/cli/commands/ExportCommand.js +243 -0
- package/dist/cli/commands/HistoryCommand.d.ts +50 -0
- package/dist/cli/commands/HistoryCommand.d.ts.map +1 -0
- package/dist/cli/commands/HistoryCommand.js +96 -0
- package/dist/cli/commands/StatusCommand.d.ts +33 -0
- package/dist/cli/commands/StatusCommand.d.ts.map +1 -0
- package/dist/cli/commands/StatusCommand.js +93 -0
- package/dist/cli/commands/ThemeCommand.d.ts +33 -0
- package/dist/cli/commands/ThemeCommand.d.ts.map +1 -0
- package/dist/cli/commands/ThemeCommand.js +79 -0
- package/dist/cli/help.d.ts +15 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/help.js +118 -0
- package/dist/cli/index.d.ts +15 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +46 -0
- package/dist/constants.d.ts +122 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +159 -0
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.ts +134 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +315 -242
- package/dist/core.js.map +1 -1
- package/dist/example.d.ts +18 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +154 -0
- package/dist/exports-module.d.ts +203 -0
- package/dist/exports-module.d.ts.map +1 -0
- package/dist/exports-module.js +260 -0
- package/dist/exports.cjs +1 -1
- package/dist/exports.cjs.map +1 -1
- package/dist/exports.js +5 -4
- package/dist/exports.js.map +1 -1
- package/dist/handlers/AnalyticsLogHandler.d.ts +11 -0
- package/dist/handlers/AnalyticsLogHandler.d.ts.map +1 -0
- package/dist/handlers/AnalyticsLogHandler.js +19 -0
- package/dist/handlers/ExportLogHandler.d.ts +103 -0
- package/dist/handlers/ExportLogHandler.d.ts.map +1 -0
- package/dist/handlers/ExportLogHandler.js +516 -0
- package/dist/handlers/FileLogHandler.d.ts +36 -0
- package/dist/handlers/FileLogHandler.d.ts.map +1 -0
- package/dist/handlers/FileLogHandler.js +156 -0
- package/dist/handlers/RemoteLogHandler.d.ts +14 -0
- package/dist/handlers/RemoteLogHandler.d.ts.map +1 -0
- package/dist/handlers/RemoteLogHandler.js +37 -0
- package/dist/handlers/index.d.ts +8 -0
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +86 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +89 -103
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +139 -0
- package/dist/styling/LogStyleBuilder.d.ts +149 -0
- package/dist/styling/LogStyleBuilder.d.ts.map +1 -0
- package/dist/styling/LogStyleBuilder.js +289 -0
- package/dist/styling/SemanticStyles.d.ts +181 -0
- package/dist/styling/SemanticStyles.d.ts.map +1 -0
- package/dist/styling/SemanticStyles.js +339 -0
- package/dist/styling/SmartPresets.d.ts +25 -0
- package/dist/styling/SmartPresets.d.ts.map +1 -0
- package/dist/styling/SmartPresets.js +276 -0
- package/dist/styling/StyleBuilder.d.ts +140 -0
- package/dist/styling/StyleBuilder.d.ts.map +1 -0
- package/dist/styling/StyleBuilder.js +280 -0
- package/dist/styling/banners.d.ts +45 -0
- package/dist/styling/banners.d.ts.map +1 -0
- package/dist/styling/banners.js +155 -0
- package/dist/styling/index.d.ts +10 -0
- package/dist/styling/index.d.ts.map +1 -0
- package/dist/styling/index.js +9 -0
- package/dist/styling/themes.d.ts +10 -0
- package/dist/styling/themes.d.ts.map +1 -0
- package/dist/styling/themes.js +231 -0
- package/dist/styling-module.d.ts +185 -0
- package/dist/styling-module.d.ts.map +1 -0
- package/dist/styling-module.js +199 -0
- package/dist/styling.cjs +1 -1
- package/dist/styling.cjs.map +1 -1
- package/dist/styling.js +6 -6
- package/dist/styling.js.map +1 -1
- package/dist/types/Logger.d.ts +268 -0
- package/dist/types/Logger.d.ts.map +1 -0
- package/dist/types/ScopedLogger.d.ts +123 -0
- package/dist/types/ScopedLogger.d.ts.map +1 -0
- package/dist/types/cli/CommandProcessor.d.ts +100 -0
- package/dist/types/cli/CommandProcessor.d.ts.map +1 -0
- package/dist/types/cli/commands/ConfigCommand.d.ts +14 -0
- package/dist/types/cli/commands/ConfigCommand.d.ts.map +1 -0
- package/dist/types/cli/commands/ExportCommand.d.ts +48 -0
- package/dist/types/cli/commands/ExportCommand.d.ts.map +1 -0
- package/dist/types/cli/commands/HistoryCommand.d.ts +47 -0
- package/dist/types/cli/commands/HistoryCommand.d.ts.map +1 -0
- package/dist/types/cli/commands/StatusCommand.d.ts +30 -0
- package/dist/types/cli/commands/StatusCommand.d.ts.map +1 -0
- package/dist/types/cli/commands/ThemeCommand.d.ts +30 -0
- package/dist/types/cli/commands/ThemeCommand.d.ts.map +1 -0
- package/dist/types/cli/help.d.ts +12 -0
- package/dist/types/cli/help.d.ts.map +1 -0
- package/dist/types/cli/index.d.ts +15 -0
- package/dist/types/cli/index.d.ts.map +1 -0
- package/dist/types/constants.d.ts +119 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/core.d.ts +125 -211
- package/dist/types/core.d.ts.map +1 -0
- package/dist/types/core.js +13 -0
- package/dist/types/example.d.ts +18 -0
- package/dist/types/example.d.ts.map +1 -0
- package/dist/types/exports-module.d.ts +196 -0
- package/dist/types/exports-module.d.ts.map +1 -0
- package/dist/types/handlers/AnalyticsLogHandler.d.ts +8 -0
- package/dist/types/handlers/AnalyticsLogHandler.d.ts.map +1 -0
- package/dist/types/handlers/ExportLogHandler.d.ts +100 -0
- package/dist/types/handlers/ExportLogHandler.d.ts.map +1 -0
- package/dist/types/handlers/FileLogHandler.d.ts +33 -0
- package/dist/types/handlers/FileLogHandler.d.ts.map +1 -0
- package/dist/types/handlers/RemoteLogHandler.d.ts +11 -0
- package/dist/types/handlers/RemoteLogHandler.d.ts.map +1 -0
- package/dist/types/handlers/index.d.ts +8 -0
- package/dist/types/handlers/index.d.ts.map +1 -0
- package/dist/types/handlers.d.ts +88 -0
- package/dist/types/handlers.d.ts.map +1 -0
- package/dist/types/handlers.js +4 -0
- package/dist/types/index.d.ts +7 -675
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/main.d.ts +2 -0
- package/dist/types/main.d.ts.map +1 -0
- package/dist/types/styling/LogStyleBuilder.d.ts +146 -0
- package/dist/types/styling/LogStyleBuilder.d.ts.map +1 -0
- package/dist/types/styling/SemanticStyles.d.ts +178 -0
- package/dist/types/styling/SemanticStyles.d.ts.map +1 -0
- package/dist/types/styling/SmartPresets.d.ts +22 -0
- package/dist/types/styling/SmartPresets.d.ts.map +1 -0
- package/dist/types/styling/StyleBuilder.d.ts +140 -0
- package/dist/types/styling/StyleBuilder.d.ts.map +1 -0
- package/dist/types/styling/banners.d.ts +42 -0
- package/dist/types/styling/banners.d.ts.map +1 -0
- package/dist/types/styling/index.d.ts +10 -0
- package/dist/types/styling/index.d.ts.map +1 -0
- package/dist/types/styling/themes.d.ts +7 -0
- package/dist/types/styling/themes.d.ts.map +1 -0
- package/dist/types/styling-module.d.ts +178 -0
- package/dist/types/styling-module.d.ts.map +1 -0
- package/dist/types/types/core.d.ts +125 -0
- package/dist/types/types/core.d.ts.map +1 -0
- package/dist/types/types/handlers.d.ts +85 -0
- package/dist/types/types/handlers.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +7 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/utils/environment.d.ts +47 -0
- package/dist/types/utils/environment.d.ts.map +1 -0
- package/dist/types/utils/formatting.d.ts +37 -0
- package/dist/types/utils/formatting.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/opentui-detection.d.ts +34 -0
- package/dist/types/utils/opentui-detection.d.ts.map +1 -0
- package/dist/types/utils/output.d.ts +41 -0
- package/dist/types/utils/output.d.ts.map +1 -0
- package/dist/types/utils/stackTrace.d.ts +6 -0
- package/dist/types/utils/stackTrace.d.ts.map +1 -0
- package/dist/types/utils/timestamps.d.ts +20 -0
- package/dist/types/utils/timestamps.d.ts.map +1 -0
- package/dist/utils/environment.d.ts +47 -0
- package/dist/utils/environment.d.ts.map +1 -0
- package/dist/utils/environment.js +85 -0
- package/dist/utils/formatting.d.ts +40 -0
- package/dist/utils/formatting.d.ts.map +1 -0
- package/dist/utils/formatting.js +117 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +6 -0
- package/dist/utils/opentui-detection.d.ts +34 -0
- package/dist/utils/opentui-detection.d.ts.map +1 -0
- package/dist/utils/opentui-detection.js +116 -0
- package/dist/utils/output.d.ts +44 -0
- package/dist/utils/output.d.ts.map +1 -0
- package/dist/utils/output.js +150 -0
- package/dist/utils/stackTrace.d.ts +9 -0
- package/dist/utils/stackTrace.d.ts.map +1 -0
- package/dist/utils/stackTrace.js +81 -0
- package/dist/utils/timestamps.d.ts +20 -0
- package/dist/utils/timestamps.d.ts.map +1 -0
- package/dist/utils/timestamps.js +71 -0
- package/docs/API.md +691 -0
- package/docs/CORE.md +10 -10
- package/docs/DEVELOPMENT.md +731 -0
- package/docs/PACKAGES.md +244 -0
- package/docs/_config.yml +36 -0
- package/docs/index.md +179 -0
- package/examples/README.md +208 -0
- package/examples/basic-logging.js +75 -0
- package/examples/data-export.js +234 -0
- package/examples/package.json +16 -0
- package/examples/performance-timing.js +170 -0
- package/examples/simplified-api.js +124 -0
- package/examples/styling-themes.js +207 -0
- package/package.json +37 -21
- package/packages/core/package.json +57 -0
- package/packages/exports/package.json +41 -0
- package/packages/nodejs-opentui/README.md +232 -0
- package/packages/nodejs-opentui/package.json +72 -0
- package/packages/nodejs-opentui/src/LogRenderer.ts +171 -0
- package/packages/nodejs-opentui/src/OpenTUILogHandler.ts +178 -0
- package/packages/nodejs-opentui/src/components/LogBadge.tsx +131 -0
- package/packages/nodejs-opentui/src/index.ts +133 -0
- package/packages/nodejs-opentui/src/types.ts +158 -0
- package/packages/nodejs-opentui/tsconfig.json +20 -0
- package/packages/styling/package.json +41 -0
- package/project-utils/README.md +172 -0
- package/project-utils/auto-release-gemini.ts +1193 -0
- package/project-utils/auto-release-ui.ts +1329 -0
- package/project-utils/commit-generator.ts +1385 -0
- package/project-utils/commit-ui.ts +264 -0
- package/project-utils/git-utils.ts +199 -0
- package/project-utils/github-release-manager.ts +466 -0
- package/project-utils/project-config.ts +260 -0
- package/project-utils/prompt-templates.js +345 -0
- package/project-utils/prompt-templates.ts +422 -0
- package/project-utils/version-manager.ts +1078 -0
- package/src/Logger.ts +251 -16
- package/src/ScopedLogger.ts +262 -0
- package/src/cli/CommandProcessor.ts +173 -2
- package/src/cli/commands/HistoryCommand.ts +117 -0
- package/src/cli/index.ts +12 -0
- package/src/constants.ts +84 -2
- package/src/core.ts +119 -46
- package/src/example.ts +4 -4
- package/src/exports-module.ts +1 -1
- package/src/handlers/ExportLogHandler.ts +141 -0
- package/src/handlers/FileLogHandler.ts +144 -5
- package/src/index.ts +1 -1
- package/src/main.ts +3 -3
- package/src/styling/LogStyleBuilder.ts +355 -0
- package/src/styling/SemanticStyles.ts +380 -0
- package/src/styling/SmartPresets.ts +288 -0
- package/src/styling/StyleBuilder.ts +14 -0
- package/src/styling/index.ts +16 -1
- package/src/styling-module.ts +1 -1
- package/src/types/core.ts +60 -0
- package/src/types/index.ts +6 -0
- package/src/utils/environment.ts +94 -0
- package/src/utils/formatting.ts +142 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/opentui-detection.ts +138 -0
- package/src/utils/output.ts +66 -8
- package/test-core-browser.html +237 -0
- package/test-core-node.js +63 -0
- package/tests/test-conflict-resolution.ts +391 -0
- package/tests/validate-workflows.sh +131 -0
- package/tests/yaml-autofix.sh +146 -0
- package/vite.config.ts +189 -50
- package/.npmrc.bak +0 -1
- package/dist/chunks/Logger-BQhMKy_T.js +0 -2
- package/dist/chunks/Logger-BQhMKy_T.js.map +0 -1
- package/dist/chunks/Logger-BrFKFZcD.js +0 -978
- package/dist/chunks/Logger-BrFKFZcD.js.map +0 -1
- package/dist/chunks/core-2opW4Pi3.js +0 -194
- package/dist/chunks/core-2opW4Pi3.js.map +0 -1
- package/dist/chunks/core-DyugwSYZ.js +0 -4
- package/dist/chunks/core-DyugwSYZ.js.map +0 -1
- package/dist/chunks/exports-BNP3R7dp.js +0 -421
- package/dist/chunks/exports-BNP3R7dp.js.map +0 -1
- package/dist/chunks/exports-U1xLBXrY.js +0 -2
- package/dist/chunks/exports-U1xLBXrY.js.map +0 -1
- package/dist/chunks/styling-DhUDzwlE.js +0 -654
- package/dist/chunks/styling-DhUDzwlE.js.map +0 -1
- package/dist/chunks/styling-tmRDI28D.js +0 -2
- package/dist/chunks/styling-tmRDI28D.js.map +0 -1
- package/dist/types/exports.d.ts +0 -600
- package/dist/types/styling.d.ts +0 -751
- package/src/Logger.ts.backup +0 -1684
- /package/.github/{workflows β workflows-backup}/release.yml +0 -0
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Full Release Pipeline - Granular AI Steps
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
inputs:
|
|
7
|
+
version_type:
|
|
8
|
+
description: 'Tipo de versiΓ³n'
|
|
9
|
+
required: false
|
|
10
|
+
default: 'auto'
|
|
11
|
+
type: choice
|
|
12
|
+
options:
|
|
13
|
+
- auto
|
|
14
|
+
- patch
|
|
15
|
+
- minor
|
|
16
|
+
- major
|
|
17
|
+
version_prefix:
|
|
18
|
+
description: 'Prefijo de versiΓ³n'
|
|
19
|
+
required: false
|
|
20
|
+
default: 'stable'
|
|
21
|
+
type: choice
|
|
22
|
+
options:
|
|
23
|
+
- stable
|
|
24
|
+
- alpha
|
|
25
|
+
- beta
|
|
26
|
+
- rc
|
|
27
|
+
target_registry:
|
|
28
|
+
description: 'Registro objetivo'
|
|
29
|
+
required: false
|
|
30
|
+
default: 'both'
|
|
31
|
+
type: choice
|
|
32
|
+
options:
|
|
33
|
+
- npm
|
|
34
|
+
- github
|
|
35
|
+
- both
|
|
36
|
+
skip_tests:
|
|
37
|
+
description: 'Saltar tests (no recomendado)'
|
|
38
|
+
required: false
|
|
39
|
+
default: false
|
|
40
|
+
type: boolean
|
|
41
|
+
dry_run:
|
|
42
|
+
description: 'Solo mostrar quΓ© harΓa (dry run)'
|
|
43
|
+
required: false
|
|
44
|
+
default: false
|
|
45
|
+
type: boolean
|
|
46
|
+
push:
|
|
47
|
+
branches: [main]
|
|
48
|
+
paths-ignore:
|
|
49
|
+
- '*.md'
|
|
50
|
+
- '.github/workflows/docs-demo.yml'
|
|
51
|
+
|
|
52
|
+
# Concurrency control para evitar conflictos entre workflows de release
|
|
53
|
+
concurrency:
|
|
54
|
+
group: release-pipeline-${{ github.ref }}
|
|
55
|
+
cancel-in-progress: true
|
|
56
|
+
|
|
57
|
+
env:
|
|
58
|
+
NODE_VERSION: '20'
|
|
59
|
+
|
|
60
|
+
jobs:
|
|
61
|
+
# ===== STEP 1: AI VERSION ANALYSIS & GENERATION =====
|
|
62
|
+
ai-version-generation:
|
|
63
|
+
runs-on: ubuntu-latest
|
|
64
|
+
if: github.actor != 'github-actions[bot]'
|
|
65
|
+
permissions:
|
|
66
|
+
contents: write
|
|
67
|
+
|
|
68
|
+
outputs:
|
|
69
|
+
version: ${{ steps.version.outputs.version }}
|
|
70
|
+
tag: ${{ steps.version.outputs.tag }}
|
|
71
|
+
is_prerelease: ${{ steps.version.outputs.is_prerelease }}
|
|
72
|
+
release_channel: ${{ steps.version.outputs.release_channel }}
|
|
73
|
+
should_skip: ${{ steps.version.outputs.should_skip }}
|
|
74
|
+
|
|
75
|
+
steps:
|
|
76
|
+
- name: "π₯ Checkout code"
|
|
77
|
+
uses: actions/checkout@v4
|
|
78
|
+
with:
|
|
79
|
+
fetch-depth: 0
|
|
80
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
81
|
+
|
|
82
|
+
- name: "π¦ Setup Bun"
|
|
83
|
+
uses: oven-sh/setup-bun@v2
|
|
84
|
+
with:
|
|
85
|
+
bun-version: latest
|
|
86
|
+
|
|
87
|
+
- name: "π§ Install dependencies"
|
|
88
|
+
run: bun install --frozen-lockfile
|
|
89
|
+
|
|
90
|
+
- name: "π€ Setup Gemini CLI"
|
|
91
|
+
run: |
|
|
92
|
+
echo "π€ Configurando Gemini CLI..."
|
|
93
|
+
# Install Gemini CLI
|
|
94
|
+
npm install -g @google/generative-ai
|
|
95
|
+
# Verificar instalaciΓ³n
|
|
96
|
+
echo "β
Gemini CLI configurado"
|
|
97
|
+
env:
|
|
98
|
+
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
|
99
|
+
|
|
100
|
+
- name: "π€ Step 1: AI Version Analysis & Generation"
|
|
101
|
+
id: version
|
|
102
|
+
env:
|
|
103
|
+
VERSION_TYPE: ${{ inputs.version_type || 'auto' }}
|
|
104
|
+
VERSION_PREFIX: ${{ inputs.version_prefix || 'stable' }}
|
|
105
|
+
TARGET_REGISTRY: ${{ inputs.target_registry || 'npm' }}
|
|
106
|
+
DRY_RUN: ${{ inputs.dry_run || 'false' }}
|
|
107
|
+
run: |
|
|
108
|
+
echo "π€ === PASO 1: ANΓLISIS Y GENERACIΓN DE VERSIΓN CON AI ==="
|
|
109
|
+
|
|
110
|
+
# Mostrar contexto de ejecuciΓ³n
|
|
111
|
+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
112
|
+
echo "π Ejecutando en modo manual con parΓ‘metros especificados"
|
|
113
|
+
else
|
|
114
|
+
echo "π Ejecutando automΓ‘ticamente desde push - usando defaults"
|
|
115
|
+
fi
|
|
116
|
+
|
|
117
|
+
# Preparar argumentos para version-manager usando variables de entorno
|
|
118
|
+
ARGS="--auto-approve"
|
|
119
|
+
|
|
120
|
+
if [ "$VERSION_TYPE" != "auto" ]; then
|
|
121
|
+
ARGS="$ARGS --type $VERSION_TYPE"
|
|
122
|
+
fi
|
|
123
|
+
|
|
124
|
+
if [ "$VERSION_PREFIX" != "stable" ]; then
|
|
125
|
+
ARGS="$ARGS --prefix $VERSION_PREFIX"
|
|
126
|
+
fi
|
|
127
|
+
|
|
128
|
+
# Mostrar comando que se ejecutarΓ‘
|
|
129
|
+
echo "π Ejecutando: bun project-utils/version-manager.ts $ARGS"
|
|
130
|
+
|
|
131
|
+
if [ "$DRY_RUN" = "true" ]; then
|
|
132
|
+
echo "π [DRY RUN] Se generarΓa nueva versiΓ³n con: $ARGS"
|
|
133
|
+
echo "should_skip=true" >> $GITHUB_OUTPUT
|
|
134
|
+
echo "version=dry-run" >> $GITHUB_OUTPUT
|
|
135
|
+
echo "tag=dry-run" >> $GITHUB_OUTPUT
|
|
136
|
+
echo "is_prerelease=false" >> $GITHUB_OUTPUT
|
|
137
|
+
echo "release_channel=dry-run" >> $GITHUB_OUTPUT
|
|
138
|
+
else
|
|
139
|
+
# Ejecutar version-manager con AI
|
|
140
|
+
echo "π Ejecutando version-manager con anΓ‘lisis AI..."
|
|
141
|
+
bun project-utils/version-manager.ts $ARGS
|
|
142
|
+
|
|
143
|
+
# Obtener nueva versiΓ³n del package.json
|
|
144
|
+
NEW_VERSION=$(node -p "require('./package.json').version")
|
|
145
|
+
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
146
|
+
echo "tag=v$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
147
|
+
|
|
148
|
+
# Determinar si es prerelease y canal
|
|
149
|
+
case "$NEW_VERSION" in
|
|
150
|
+
*alpha*)
|
|
151
|
+
echo "is_prerelease=true" >> $GITHUB_OUTPUT
|
|
152
|
+
echo "release_channel=alpha" >> $GITHUB_OUTPUT
|
|
153
|
+
;;
|
|
154
|
+
*beta*)
|
|
155
|
+
echo "is_prerelease=true" >> $GITHUB_OUTPUT
|
|
156
|
+
echo "release_channel=beta" >> $GITHUB_OUTPUT
|
|
157
|
+
;;
|
|
158
|
+
*rc*)
|
|
159
|
+
echo "is_prerelease=true" >> $GITHUB_OUTPUT
|
|
160
|
+
echo "release_channel=rc" >> $GITHUB_OUTPUT
|
|
161
|
+
;;
|
|
162
|
+
*)
|
|
163
|
+
echo "is_prerelease=false" >> $GITHUB_OUTPUT
|
|
164
|
+
echo "release_channel=latest" >> $GITHUB_OUTPUT
|
|
165
|
+
;;
|
|
166
|
+
esac
|
|
167
|
+
|
|
168
|
+
echo "should_skip=false" >> $GITHUB_OUTPUT
|
|
169
|
+
echo "β
Nueva versiΓ³n generada: $NEW_VERSION"
|
|
170
|
+
fi
|
|
171
|
+
|
|
172
|
+
- name: "π·οΈ Commit and push version changes"
|
|
173
|
+
if: steps.version.outputs.should_skip != 'true'
|
|
174
|
+
run: |
|
|
175
|
+
echo "π·οΈ Commiteando cambios de versiΓ³n usando project-utils con resoluciΓ³n automΓ‘tica de conflictos..."
|
|
176
|
+
|
|
177
|
+
# Configurar environment variables para detectar contexto de release
|
|
178
|
+
export RELEASE_WORKFLOW=true
|
|
179
|
+
export GITHUB_WORKFLOW="${{ github.workflow }}"
|
|
180
|
+
|
|
181
|
+
# Usar commit-generator con contexto especΓfico de release
|
|
182
|
+
echo "π€ Usando commit-generator con detecciΓ³n automΓ‘tica de conflictos..."
|
|
183
|
+
bun project-utils/commit-generator.ts \
|
|
184
|
+
--context "release ${{ steps.version.outputs.version }}" \
|
|
185
|
+
--work-type "release" \
|
|
186
|
+
--affected-components "core,styling,exports,changelog" \
|
|
187
|
+
--auto-approve \
|
|
188
|
+
--quiet \
|
|
189
|
+
|| {
|
|
190
|
+
echo "β οΈ Commit-generator fallΓ³, usando estrategia de fallback..."
|
|
191
|
+
|
|
192
|
+
# Fallback: estrategia manual con pull-rebase-push
|
|
193
|
+
git config user.name "github-actions[bot]"
|
|
194
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
195
|
+
|
|
196
|
+
MAX_RETRIES=3
|
|
197
|
+
RETRY_COUNT=0
|
|
198
|
+
|
|
199
|
+
while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
|
|
200
|
+
echo "π Intento fallback $((RETRY_COUNT + 1))/$MAX_RETRIES"
|
|
201
|
+
|
|
202
|
+
git fetch origin main
|
|
203
|
+
if ! git merge-base --is-ancestor origin/main HEAD; then
|
|
204
|
+
echo "π Aplicando rebase..."
|
|
205
|
+
git rebase origin/main || {
|
|
206
|
+
echo "β οΈ Conflictos en rebase, aplicando reset hard"
|
|
207
|
+
git rebase --abort
|
|
208
|
+
git reset --hard origin/main
|
|
209
|
+
}
|
|
210
|
+
fi
|
|
211
|
+
|
|
212
|
+
git add package.json CHANGELOG.json packages/*/package.json
|
|
213
|
+
git commit -m "chore: release ${{ steps.version.outputs.version }} [skip ci]" || {
|
|
214
|
+
echo "βΉοΈ No hay cambios para commit"
|
|
215
|
+
break
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if git push origin main; then
|
|
219
|
+
echo "β
Push exitoso en intento fallback $((RETRY_COUNT + 1))"
|
|
220
|
+
break
|
|
221
|
+
else
|
|
222
|
+
RETRY_COUNT=$((RETRY_COUNT + 1))
|
|
223
|
+
if [ $RETRY_COUNT -lt $MAX_RETRIES ]; then
|
|
224
|
+
sleep 5
|
|
225
|
+
git reset --hard HEAD~1
|
|
226
|
+
fi
|
|
227
|
+
fi
|
|
228
|
+
done
|
|
229
|
+
|
|
230
|
+
if [ $RETRY_COUNT -ge $MAX_RETRIES ]; then
|
|
231
|
+
echo "β Push fallΓ³ despuΓ©s de $MAX_RETRIES intentos"
|
|
232
|
+
exit 1
|
|
233
|
+
fi
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
- name: "π€ Upload version artifacts"
|
|
237
|
+
uses: actions/upload-artifact@v4
|
|
238
|
+
if: always()
|
|
239
|
+
with:
|
|
240
|
+
name: version-artifacts
|
|
241
|
+
path: |
|
|
242
|
+
project-utils/.temp/
|
|
243
|
+
CHANGELOG.json
|
|
244
|
+
package.json
|
|
245
|
+
retention-days: 7
|
|
246
|
+
|
|
247
|
+
# ===== STEP 2: BUILD & PREPARE =====
|
|
248
|
+
build-and-prepare:
|
|
249
|
+
runs-on: ubuntu-latest
|
|
250
|
+
needs: ai-version-generation
|
|
251
|
+
if: needs.ai-version-generation.outputs.should_skip != 'true'
|
|
252
|
+
|
|
253
|
+
steps:
|
|
254
|
+
- name: "π₯ Checkout code with version changes"
|
|
255
|
+
uses: actions/checkout@v4
|
|
256
|
+
with:
|
|
257
|
+
fetch-depth: 0
|
|
258
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
259
|
+
ref: main
|
|
260
|
+
|
|
261
|
+
- name: "π Pull latest changes"
|
|
262
|
+
run: git pull origin main
|
|
263
|
+
|
|
264
|
+
- name: "π¦ Setup Bun"
|
|
265
|
+
uses: oven-sh/setup-bun@v2
|
|
266
|
+
with:
|
|
267
|
+
bun-version: latest
|
|
268
|
+
|
|
269
|
+
- name: "π§ Install dependencies"
|
|
270
|
+
run: bun install --frozen-lockfile
|
|
271
|
+
|
|
272
|
+
- name: "π§ͺ Step 2: Run tests (unless skipped)"
|
|
273
|
+
if: github.event_name == 'workflow_dispatch' && github.event.inputs.skip_tests != 'true'
|
|
274
|
+
run: |
|
|
275
|
+
echo "π§ͺ === PASO 2: EJECUTANDO TESTS Y VALIDACIONES ==="
|
|
276
|
+
bun run type-check
|
|
277
|
+
bun run test
|
|
278
|
+
echo "β
Tests completados exitosamente"
|
|
279
|
+
|
|
280
|
+
- name: "ποΈ Step 3: Build all modules"
|
|
281
|
+
run: |
|
|
282
|
+
echo "ποΈ === PASO 3: COMPILANDO TODOS LOS MΓDULOS ==="
|
|
283
|
+
bun run build:all
|
|
284
|
+
echo "β
Build completado exitosamente"
|
|
285
|
+
|
|
286
|
+
# Mostrar archivos generados
|
|
287
|
+
echo "π Archivos generados:"
|
|
288
|
+
ls -la dist/
|
|
289
|
+
|
|
290
|
+
- name: "π€ Upload build artifacts"
|
|
291
|
+
uses: actions/upload-artifact@v4
|
|
292
|
+
with:
|
|
293
|
+
name: build-artifacts-${{ needs.ai-version-generation.outputs.version }}
|
|
294
|
+
path: dist/
|
|
295
|
+
retention-days: 30
|
|
296
|
+
|
|
297
|
+
# ===== STEP 3: PUBLISH SUB-PACKAGES =====
|
|
298
|
+
publish-subpackages:
|
|
299
|
+
runs-on: ubuntu-latest
|
|
300
|
+
needs: [ai-version-generation, build-and-prepare]
|
|
301
|
+
if: needs.ai-version-generation.outputs.should_skip != 'true'
|
|
302
|
+
|
|
303
|
+
steps:
|
|
304
|
+
- name: "π₯ Checkout code"
|
|
305
|
+
uses: actions/checkout@v4
|
|
306
|
+
with:
|
|
307
|
+
ref: main
|
|
308
|
+
|
|
309
|
+
- name: "π¦ Setup Node.js with NPM registry"
|
|
310
|
+
uses: actions/setup-node@v4
|
|
311
|
+
with:
|
|
312
|
+
node-version: '20'
|
|
313
|
+
registry-url: 'https://registry.npmjs.org'
|
|
314
|
+
|
|
315
|
+
- name: "π₯ Download build artifacts"
|
|
316
|
+
uses: actions/download-artifact@v4
|
|
317
|
+
with:
|
|
318
|
+
name: build-artifacts-${{ needs.ai-version-generation.outputs.version }}
|
|
319
|
+
path: dist/
|
|
320
|
+
|
|
321
|
+
- name: "π Step 3a: Publish Sub-Packages to NPM"
|
|
322
|
+
run: |
|
|
323
|
+
echo "π === PASO 3a: PUBLICANDO SUB-PACKAGES EN NPM ==="
|
|
324
|
+
|
|
325
|
+
# Core package
|
|
326
|
+
echo "π¦ Publishing @mks2508/better-logger-core"
|
|
327
|
+
cd packages/core
|
|
328
|
+
if [ "${{ needs.ai-version-generation.outputs.is_prerelease }}" = "true" ]; then
|
|
329
|
+
npm publish --access public --tag ${{ needs.ai-version-generation.outputs.release_channel }}
|
|
330
|
+
else
|
|
331
|
+
npm publish --access public
|
|
332
|
+
fi
|
|
333
|
+
cd ../..
|
|
334
|
+
|
|
335
|
+
# Styling package
|
|
336
|
+
echo "π¦ Publishing @mks2508/better-logger-styling"
|
|
337
|
+
cd packages/styling
|
|
338
|
+
if [ "${{ needs.ai-version-generation.outputs.is_prerelease }}" = "true" ]; then
|
|
339
|
+
npm publish --access public --tag ${{ needs.ai-version-generation.outputs.release_channel }}
|
|
340
|
+
else
|
|
341
|
+
npm publish --access public
|
|
342
|
+
fi
|
|
343
|
+
cd ../..
|
|
344
|
+
|
|
345
|
+
# Exports package
|
|
346
|
+
echo "π¦ Publishing @mks2508/better-logger-exports"
|
|
347
|
+
cd packages/exports
|
|
348
|
+
if [ "${{ needs.ai-version-generation.outputs.is_prerelease }}" = "true" ]; then
|
|
349
|
+
npm publish --access public --tag ${{ needs.ai-version-generation.outputs.release_channel }}
|
|
350
|
+
else
|
|
351
|
+
npm publish --access public
|
|
352
|
+
fi
|
|
353
|
+
cd ../..
|
|
354
|
+
|
|
355
|
+
echo "β
Sub-packages published successfully"
|
|
356
|
+
env:
|
|
357
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
358
|
+
|
|
359
|
+
# ===== STEP 4: NPM MAIN PACKAGE PUBLISHING =====
|
|
360
|
+
publish-npm:
|
|
361
|
+
runs-on: ubuntu-latest
|
|
362
|
+
needs: [ai-version-generation, build-and-prepare, publish-subpackages]
|
|
363
|
+
if: needs.ai-version-generation.outputs.should_skip != 'true' && (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && (github.event.inputs.target_registry == 'npm' || github.event.inputs.target_registry == 'both')))
|
|
364
|
+
|
|
365
|
+
steps:
|
|
366
|
+
- name: "π₯ Checkout code"
|
|
367
|
+
uses: actions/checkout@v4
|
|
368
|
+
with:
|
|
369
|
+
ref: main
|
|
370
|
+
|
|
371
|
+
- name: "π¦ Setup Node.js with NPM registry"
|
|
372
|
+
uses: actions/setup-node@v4
|
|
373
|
+
with:
|
|
374
|
+
node-version: '20'
|
|
375
|
+
registry-url: 'https://registry.npmjs.org'
|
|
376
|
+
|
|
377
|
+
- name: "π₯ Download build artifacts"
|
|
378
|
+
uses: actions/download-artifact@v4
|
|
379
|
+
with:
|
|
380
|
+
name: build-artifacts-${{ needs.ai-version-generation.outputs.version }}
|
|
381
|
+
path: dist/
|
|
382
|
+
|
|
383
|
+
- name: "π Step 4: Publish to NPM Registry"
|
|
384
|
+
run: |
|
|
385
|
+
echo "π === PASO 4: PUBLICANDO EN NPM REGISTRY ==="
|
|
386
|
+
if [ "${{ needs.ai-version-generation.outputs.is_prerelease }}" = "true" ]; then
|
|
387
|
+
echo "π¦ Publishing prerelease to NPM with tag: ${{ needs.ai-version-generation.outputs.release_channel }}"
|
|
388
|
+
npm publish --access public --tag ${{ needs.ai-version-generation.outputs.release_channel }}
|
|
389
|
+
else
|
|
390
|
+
echo "π¦ Publishing stable release to NPM"
|
|
391
|
+
npm publish --access public
|
|
392
|
+
fi
|
|
393
|
+
echo "β
PublicaciΓ³n en NPM completada"
|
|
394
|
+
env:
|
|
395
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
396
|
+
|
|
397
|
+
# ===== STEP 4.5: DOCS & DEMO DEPLOYMENT =====
|
|
398
|
+
deploy-docs-demo:
|
|
399
|
+
runs-on: ubuntu-latest
|
|
400
|
+
needs: [ai-version-generation, build-and-prepare]
|
|
401
|
+
if: needs.ai-version-generation.outputs.should_skip != 'true'
|
|
402
|
+
|
|
403
|
+
steps:
|
|
404
|
+
- name: "π₯ Checkout code"
|
|
405
|
+
uses: actions/checkout@v4
|
|
406
|
+
|
|
407
|
+
- name: "π¦ Setup Bun"
|
|
408
|
+
uses: oven-sh/setup-bun@v2
|
|
409
|
+
with:
|
|
410
|
+
bun-version: latest
|
|
411
|
+
|
|
412
|
+
- name: "π§ Install dependencies"
|
|
413
|
+
run: bun install --frozen-lockfile
|
|
414
|
+
|
|
415
|
+
- name: "ποΈ Build library for demo"
|
|
416
|
+
run: bun run build:full
|
|
417
|
+
|
|
418
|
+
- name: "ποΈ Setup demo structure"
|
|
419
|
+
run: |
|
|
420
|
+
mkdir -p _site/docs
|
|
421
|
+
cp demo.html _site/index.html
|
|
422
|
+
cp index.html _site/dev.html
|
|
423
|
+
cp -r dist/ _site/dist/
|
|
424
|
+
|
|
425
|
+
- name: "π€ Build Jekyll documentation"
|
|
426
|
+
uses: actions/jekyll-build-pages@v1
|
|
427
|
+
with:
|
|
428
|
+
source: ./docs
|
|
429
|
+
destination: ./_site/docs
|
|
430
|
+
|
|
431
|
+
- name: "π€ Setup Pages"
|
|
432
|
+
uses: actions/configure-pages@v4
|
|
433
|
+
|
|
434
|
+
- name: "π€ Upload to Pages"
|
|
435
|
+
uses: actions/upload-pages-artifact@v3
|
|
436
|
+
with:
|
|
437
|
+
path: ./_site
|
|
438
|
+
|
|
439
|
+
- name: "π Deploy to GitHub Pages"
|
|
440
|
+
id: deployment
|
|
441
|
+
uses: actions/deploy-pages@v4
|
|
442
|
+
|
|
443
|
+
permissions:
|
|
444
|
+
contents: read
|
|
445
|
+
pages: write
|
|
446
|
+
id-token: write
|
|
447
|
+
|
|
448
|
+
# ===== STEP 4: GITHUB PACKAGES PUBLISHING =====
|
|
449
|
+
publish-github:
|
|
450
|
+
runs-on: ubuntu-latest
|
|
451
|
+
needs: [ai-version-generation, build-and-prepare, publish-subpackages]
|
|
452
|
+
if: needs.ai-version-generation.outputs.should_skip != 'true' && github.event_name == 'workflow_dispatch' && (github.event.inputs.target_registry == 'github' || github.event.inputs.target_registry == 'both')
|
|
453
|
+
|
|
454
|
+
steps:
|
|
455
|
+
- name: "π₯ Checkout code"
|
|
456
|
+
uses: actions/checkout@v4
|
|
457
|
+
with:
|
|
458
|
+
ref: main
|
|
459
|
+
|
|
460
|
+
- name: "π¦ Setup Node.js with GitHub registry"
|
|
461
|
+
uses: actions/setup-node@v4
|
|
462
|
+
with:
|
|
463
|
+
node-version: '20'
|
|
464
|
+
registry-url: 'https://npm.pkg.github.com'
|
|
465
|
+
|
|
466
|
+
- name: "π₯ Download build artifacts"
|
|
467
|
+
uses: actions/download-artifact@v4
|
|
468
|
+
with:
|
|
469
|
+
name: build-artifacts-${{ needs.ai-version-generation.outputs.version }}
|
|
470
|
+
path: dist/
|
|
471
|
+
|
|
472
|
+
- name: "π¦ Step 5: Publish to GitHub Packages"
|
|
473
|
+
run: |
|
|
474
|
+
echo "π¦ === PASO 5: PUBLICANDO EN GITHUB PACKAGES ==="
|
|
475
|
+
if [ "${{ needs.ai-version-generation.outputs.is_prerelease }}" = "true" ]; then
|
|
476
|
+
echo "π¦ Publishing prerelease to GitHub Packages with tag: ${{ needs.ai-version-generation.outputs.release_channel }}"
|
|
477
|
+
npm publish --access public --tag ${{ needs.ai-version-generation.outputs.release_channel }}
|
|
478
|
+
else
|
|
479
|
+
echo "π¦ Publishing stable release to GitHub Packages"
|
|
480
|
+
npm publish --access public
|
|
481
|
+
fi
|
|
482
|
+
echo "β
PublicaciΓ³n en GitHub Packages completada"
|
|
483
|
+
env:
|
|
484
|
+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
485
|
+
|
|
486
|
+
# ===== STEP 5: GITHUB RELEASE WITH AI =====
|
|
487
|
+
create-github-release:
|
|
488
|
+
runs-on: ubuntu-latest
|
|
489
|
+
needs: [ai-version-generation, build-and-prepare, publish-subpackages, publish-npm, publish-github, deploy-docs-demo]
|
|
490
|
+
if: always() && needs.ai-version-generation.outputs.should_skip != 'true' && needs.build-and-prepare.result == 'success'
|
|
491
|
+
|
|
492
|
+
permissions:
|
|
493
|
+
contents: write
|
|
494
|
+
|
|
495
|
+
steps:
|
|
496
|
+
- name: "π₯ Checkout code"
|
|
497
|
+
uses: actions/checkout@v4
|
|
498
|
+
with:
|
|
499
|
+
fetch-depth: 0
|
|
500
|
+
ref: main
|
|
501
|
+
|
|
502
|
+
- name: "π¦ Setup Bun"
|
|
503
|
+
uses: oven-sh/setup-bun@v2
|
|
504
|
+
with:
|
|
505
|
+
bun-version: latest
|
|
506
|
+
|
|
507
|
+
- name: "π§ Install dependencies"
|
|
508
|
+
run: bun install --frozen-lockfile
|
|
509
|
+
|
|
510
|
+
- name: "π₯ Download build artifacts"
|
|
511
|
+
uses: actions/download-artifact@v4
|
|
512
|
+
with:
|
|
513
|
+
name: build-artifacts-${{ needs.ai-version-generation.outputs.version }}
|
|
514
|
+
path: dist/
|
|
515
|
+
|
|
516
|
+
- name: "π·οΈ Create git tag"
|
|
517
|
+
run: |
|
|
518
|
+
echo "π·οΈ Creando tag de git..."
|
|
519
|
+
git config user.name "github-actions[bot]"
|
|
520
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
521
|
+
git tag -a "${{ needs.ai-version-generation.outputs.tag }}" -m "Release ${{ needs.ai-version-generation.outputs.version }}"
|
|
522
|
+
git push origin --tags
|
|
523
|
+
|
|
524
|
+
- name: "π Step 6: Create GitHub Release with AI"
|
|
525
|
+
run: |
|
|
526
|
+
echo "π === PASO 6: CREANDO GITHUB RELEASE CON AI ==="
|
|
527
|
+
bun project-utils/github-release-manager.ts --auto-approve
|
|
528
|
+
echo "β
GitHub Release creado exitosamente"
|
|
529
|
+
env:
|
|
530
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
531
|
+
|
|
532
|
+
# ===== RELEASE SUMMARY =====
|
|
533
|
+
release-summary:
|
|
534
|
+
runs-on: ubuntu-latest
|
|
535
|
+
needs: [ai-version-generation, build-and-prepare, publish-subpackages, publish-npm, publish-github, deploy-docs-demo, create-github-release]
|
|
536
|
+
if: always() && needs.ai-version-generation.outputs.should_skip != 'true'
|
|
537
|
+
|
|
538
|
+
steps:
|
|
539
|
+
- name: "π Comprehensive Release Summary"
|
|
540
|
+
run: |
|
|
541
|
+
VERSION="${{ needs.ai-version-generation.outputs.version }}"
|
|
542
|
+
TAG="${{ needs.ai-version-generation.outputs.tag }}"
|
|
543
|
+
CHANNEL="${{ needs.ai-version-generation.outputs.release_channel }}"
|
|
544
|
+
IS_PRERELEASE="${{ needs.ai-version-generation.outputs.is_prerelease }}"
|
|
545
|
+
|
|
546
|
+
echo "## π Full Release Pipeline Complete!" >> $GITHUB_STEP_SUMMARY
|
|
547
|
+
echo "- **Version**: $VERSION" >> $GITHUB_STEP_SUMMARY
|
|
548
|
+
echo "- **Channel**: $CHANNEL" >> $GITHUB_STEP_SUMMARY
|
|
549
|
+
echo "- **Prerelease**: $IS_PRERELEASE" >> $GITHUB_STEP_SUMMARY
|
|
550
|
+
echo "" >> $GITHUB_STEP_SUMMARY
|
|
551
|
+
|
|
552
|
+
echo "### π Pipeline Steps Results" >> $GITHUB_STEP_SUMMARY
|
|
553
|
+
echo "1. **AI Version Generation**: β
$VERSION" >> $GITHUB_STEP_SUMMARY
|
|
554
|
+
echo "2. **Build & Prepare**: ${{ needs.build-and-prepare.result }}" >> $GITHUB_STEP_SUMMARY
|
|
555
|
+
echo "3. **Sub-Packages Publishing**: ${{ needs.publish-subpackages.result }}" >> $GITHUB_STEP_SUMMARY
|
|
556
|
+
echo "4. **Main NPM Publishing**: ${{ needs.publish-npm.result }}" >> $GITHUB_STEP_SUMMARY
|
|
557
|
+
echo "5. **GitHub Packages**: ${{ needs.publish-github.result }}" >> $GITHUB_STEP_SUMMARY
|
|
558
|
+
echo "6. **Docs & Demo Deployment**: ${{ needs.deploy-docs-demo.result }}" >> $GITHUB_STEP_SUMMARY
|
|
559
|
+
echo "7. **GitHub Release**: ${{ needs.create-github-release.result }}" >> $GITHUB_STEP_SUMMARY
|
|
560
|
+
echo "" >> $GITHUB_STEP_SUMMARY
|
|
561
|
+
|
|
562
|
+
echo "### π Links" >> $GITHUB_STEP_SUMMARY
|
|
563
|
+
if [ "${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && (github.event.inputs.target_registry == 'npm' || github.event.inputs.target_registry == 'both')) }}" = "true" ]; then
|
|
564
|
+
echo "- **Main Package**: https://www.npmjs.com/package/@mks2508/better-logger" >> $GITHUB_STEP_SUMMARY
|
|
565
|
+
echo "- **Core Package**: https://www.npmjs.com/package/@mks2508/better-logger-core" >> $GITHUB_STEP_SUMMARY
|
|
566
|
+
echo "- **Styling Package**: https://www.npmjs.com/package/@mks2508/better-logger-styling" >> $GITHUB_STEP_SUMMARY
|
|
567
|
+
echo "- **Exports Package**: https://www.npmjs.com/package/@mks2508/better-logger-exports" >> $GITHUB_STEP_SUMMARY
|
|
568
|
+
fi
|
|
569
|
+
if [ "${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.target_registry == 'github' || github.event.inputs.target_registry == 'both') }}" = "true" ]; then
|
|
570
|
+
echo "- **GitHub Packages**: https://github.com/MKS2508/advanced-logger/packages/" >> $GITHUB_STEP_SUMMARY
|
|
571
|
+
fi
|
|
572
|
+
echo "- **GitHub Release**: https://github.com/MKS2508/advanced-logger/releases/tag/$TAG" >> $GITHUB_STEP_SUMMARY
|
|
573
|
+
echo "" >> $GITHUB_STEP_SUMMARY
|
|
574
|
+
|
|
575
|
+
echo "### π¦ Installation" >> $GITHUB_STEP_SUMMARY
|
|
576
|
+
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
|
|
577
|
+
if [ "$IS_PRERELEASE" = "true" ]; then
|
|
578
|
+
echo "npm install @mks2508/better-logger@$CHANNEL" >> $GITHUB_STEP_SUMMARY
|
|
579
|
+
else
|
|
580
|
+
echo "npm install @mks2508/better-logger" >> $GITHUB_STEP_SUMMARY
|
|
581
|
+
fi
|
|
582
|
+
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
|