@programinglive/commiter 1.2.0 → 1.2.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.
- package/CHANGELOG.md +12 -0
- package/docs/release-notes/RELEASE_NOTES.md +10 -0
- package/package.json +1 -1
- package/scripts/release.cjs +1 -1
- package/scripts/update-web-version.js +15 -4
- package/web/index.html +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.2.1](https://github.com/programinglive/commiter/compare/v1.2.0...v1.2.1) (2025-11-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **release:** improve website version update reliability ([18f5ace](https://github.com/programinglive/commiter/commit/18f5acea973d49af07f2d41ebf035529d825429c))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ✨ Features
|
|
14
|
+
|
|
15
|
+
* **website:** read version from git tags instead of package.json ([8fe8af8](https://github.com/programinglive/commiter/commit/8fe8af8098816713f5ad6a08f3a548173f89d57d))
|
|
16
|
+
|
|
5
17
|
## [1.2.0](https://github.com/programinglive/commiter/compare/v1.1.11...v1.2.0) (2025-11-26)
|
|
6
18
|
|
|
7
19
|
|
|
@@ -4,6 +4,7 @@ This document summarizes every published version of `@programinglive/commiter`.
|
|
|
4
4
|
|
|
5
5
|
| Version | Date | Highlights |
|
|
6
6
|
|---------|------|------------|
|
|
7
|
+
| 1.2.1 | 2025-11-26 | **release:** improve website version update reliability (18f5ace) |
|
|
7
8
|
| 1.2.0 | 2025-11-26 | See CHANGELOG for details. |
|
|
8
9
|
| 1.1.11 | 2025-11-26 | **website:** add open graph social media preview (7a2f911) |
|
|
9
10
|
| 1.1.10 | 2025-11-26 | **website:** add professional landing page and release tools (ec53e2d) |
|
|
@@ -42,6 +43,15 @@ This document summarizes every published version of `@programinglive/commiter`.
|
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
|
|
46
|
+
|
|
47
|
+
## 1.2.1 – 🐛 Bug Fixes
|
|
48
|
+
|
|
49
|
+
Released on **2025-11-26**.
|
|
50
|
+
|
|
51
|
+
- **release:** improve website version update reliability (18f5ace)
|
|
52
|
+
- **website:** read version from git tags instead of package.json (8fe8af8)
|
|
53
|
+
- **project:** update documentation and release scripts (88d02c6)
|
|
54
|
+
|
|
45
55
|
## 1.2.0
|
|
46
56
|
|
|
47
57
|
Released on **2025-11-26**.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@programinglive/commiter",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Commiter keeps repositories release-ready by enforcing conventional commits, generating icon-rich changelog entries, and orchestrating semantic version bumps without manual toil. It bootstraps Husky hooks, commitlint rules, and release scripts that inspect history, detect framework-specific test commands, run them automatically, tag git releases, coordinate npm publishing, surface release metrics, enforce project-specific checks, and give maintainers observability across distributed teams. Plus!",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
package/scripts/release.cjs
CHANGED
|
@@ -191,7 +191,7 @@ function runRelease({
|
|
|
191
191
|
// Update website version
|
|
192
192
|
try {
|
|
193
193
|
console.log('🌐 Updating website version...');
|
|
194
|
-
const updateWebResult = spawnSync(
|
|
194
|
+
const updateWebResult = spawnSync(process.execPath, ['scripts/update-web-version.js'], { stdio: 'inherit', cwd });
|
|
195
195
|
if (updateWebResult.status === 0) {
|
|
196
196
|
spawnSync('git', ['add', 'web/index.html'], { stdio: 'inherit', cwd });
|
|
197
197
|
} else {
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const path = require('path');
|
|
3
|
+
const { execSync } = require('child_process');
|
|
3
4
|
|
|
4
|
-
// Get current version from
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
// Get current version from latest git tag
|
|
6
|
+
let version;
|
|
7
|
+
try {
|
|
8
|
+
// Get the latest tag
|
|
9
|
+
const tag = execSync('git describe --tags --abbrev=0', { encoding: 'utf8' }).trim();
|
|
10
|
+
// Remove 'v' prefix if present
|
|
11
|
+
version = tag.startsWith('v') ? tag.substring(1) : tag;
|
|
12
|
+
} catch (error) {
|
|
13
|
+
// Fallback to package.json if no tags exist
|
|
14
|
+
console.warn('⚠️ No git tags found, falling back to package.json version');
|
|
15
|
+
const packageJson = require('../package.json');
|
|
16
|
+
version = packageJson.version;
|
|
17
|
+
}
|
|
7
18
|
|
|
8
19
|
const indexPath = path.join(__dirname, '../web/index.html');
|
|
9
20
|
let content = fs.readFileSync(indexPath, 'utf8');
|
|
@@ -23,4 +34,4 @@ content = content.replace(
|
|
|
23
34
|
);
|
|
24
35
|
|
|
25
36
|
fs.writeFileSync(indexPath, content);
|
|
26
|
-
console.log(`✅ Updated website to version ${version}`);
|
|
37
|
+
console.log(`✅ Updated website to version ${version} (from git tag)`);
|
package/web/index.html
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<div class="hero-content">
|
|
67
67
|
<div class="hero-badge">
|
|
68
68
|
<span class="badge-dot"></span>
|
|
69
|
-
<span>v1.2.
|
|
69
|
+
<span>v1.2.1 - Latest Release</span>
|
|
70
70
|
</div>
|
|
71
71
|
<h1 class="hero-title">
|
|
72
72
|
Ship Releases with <span class="gradient-text">Confidence</span>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
</div>
|
|
91
91
|
<div class="hero-stats">
|
|
92
92
|
<div class="stat-item">
|
|
93
|
-
<div class="stat-value">1.2.
|
|
93
|
+
<div class="stat-value">1.2.1</div>
|
|
94
94
|
<div class="stat-label">Latest Version</div>
|
|
95
95
|
</div>
|
|
96
96
|
<div class="stat-item">
|