@programinglive/commiter 1.2.0 โ†’ 1.2.2

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 CHANGED
@@ -2,6 +2,25 @@
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.2](https://github.com/programinglive/commiter/compare/v1.2.1...v1.2.2) (2025-11-27)
6
+
7
+
8
+ ### ๐Ÿงน Chores
9
+
10
+ * update homepage url ([556b173](https://github.com/programinglive/commiter/commit/556b173db74c99e0d0b20045139f415736389727))
11
+
12
+ ### [1.2.1](https://github.com/programinglive/commiter/compare/v1.2.0...v1.2.1) (2025-11-26)
13
+
14
+
15
+ ### ๐Ÿ› Bug Fixes
16
+
17
+ * **release:** improve website version update reliability ([18f5ace](https://github.com/programinglive/commiter/commit/18f5acea973d49af07f2d41ebf035529d825429c))
18
+
19
+
20
+ ### โœจ Features
21
+
22
+ * **website:** read version from git tags instead of package.json ([8fe8af8](https://github.com/programinglive/commiter/commit/8fe8af8098816713f5ad6a08f3a548173f89d57d))
23
+
5
24
  ## [1.2.0](https://github.com/programinglive/commiter/compare/v1.1.11...v1.2.0) (2025-11-26)
6
25
 
7
26
 
@@ -4,6 +4,8 @@ This document summarizes every published version of `@programinglive/commiter`.
4
4
 
5
5
  | Version | Date | Highlights |
6
6
  |---------|------|------------|
7
+ | 1.2.2 | 2025-11-27 | update homepage url (556b173) |
8
+ | 1.2.1 | 2025-11-26 | **release:** improve website version update reliability (18f5ace) |
7
9
  | 1.2.0 | 2025-11-26 | See CHANGELOG for details. |
8
10
  | 1.1.11 | 2025-11-26 | **website:** add open graph social media preview (7a2f911) |
9
11
  | 1.1.10 | 2025-11-26 | **website:** add professional landing page and release tools (ec53e2d) |
@@ -42,6 +44,22 @@ This document summarizes every published version of `@programinglive/commiter`.
42
44
 
43
45
 
44
46
 
47
+
48
+
49
+ ## 1.2.2 โ€“ ๐Ÿงน Chores
50
+
51
+ Released on **2025-11-27**.
52
+
53
+ - update homepage url (556b173)
54
+
55
+ ## 1.2.1 โ€“ ๐Ÿ› Bug Fixes
56
+
57
+ Released on **2025-11-26**.
58
+
59
+ - **release:** improve website version update reliability (18f5ace)
60
+ - **website:** read version from git tags instead of package.json (8fe8af8)
61
+ - **project:** update documentation and release scripts (88d02c6)
62
+
45
63
  ## 1.2.0
46
64
 
47
65
  Released on **2025-11-26**.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@programinglive/commiter",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
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": {
@@ -36,7 +36,7 @@
36
36
  "bugs": {
37
37
  "url": "https://github.com/programinglive/commiter/issues"
38
38
  },
39
- "homepage": "https://github.com/programinglive/commiter#readme",
39
+ "homepage": "https://commiter.programinglive.com",
40
40
  "type": "commonjs",
41
41
  "standard-version": {
42
42
  "releaseCommitMessageFormat": "chore(release): {{currentTag}} ๐Ÿš€",
@@ -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('npm', ['run', 'update:web'], { stdio: 'inherit', cwd });
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 package.json
5
- const packageJson = require('../package.json');
6
- const version = packageJson.version;
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.0 - Latest Release</span>
69
+ <span>v1.2.2 - 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.0</div>
93
+ <div class="stat-value">1.2.2</div>
94
94
  <div class="stat-label">Latest Version</div>
95
95
  </div>
96
96
  <div class="stat-item">