@programinglive/commiter 1.2.8 → 1.2.12

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.
@@ -1,103 +1,103 @@
1
- # Creating GitHub Releases
2
-
3
- This guide explains how to populate your GitHub releases page with releases from your tags.
4
-
5
- ## Problem
6
-
7
- You have tags in your repository (v1.0.0, v1.1.9, etc.) but the GitHub releases page is empty. GitHub doesn't automatically create releases from tags - you need to create them manually.
8
-
9
- ## Solution Options
10
-
11
- ### Option 1: Use the Automated Script (Recommended)
12
-
13
- We've created a script that will automatically create releases for all your tags using the content from CHANGELOG.md.
14
-
15
- #### Prerequisites
16
- 1. Create a GitHub Personal Access Token:
17
- - Go to https://github.com/settings/tokens
18
- - Click "Generate new token" → "Generate new token (classic)"
19
- - Give it a name like "Commiter Releases"
20
- - Select scope: `repo` (Full control of private repositories)
21
- - Click "Generate token"
22
- - **Copy the token immediately** (you won't see it again!)
23
-
24
- #### Steps
25
- 1. Set your GitHub token as an environment variable:
26
- ```powershell
27
- # Windows PowerShell
28
- $env:GITHUB_TOKEN="your_token_here"
29
- ```
30
-
31
- 2. Run the script:
32
- ```bash
33
- node scripts/create-releases.js
34
- ```
35
-
36
- 3. The script will:
37
- - Read all your local tags
38
- - Parse CHANGELOG.md for release notes
39
- - Create GitHub releases for each tag
40
- - Skip tags that already have releases
41
-
42
- ### Option 2: Create Releases Manually
43
-
44
- If you prefer to create releases manually or just want to create the latest release:
45
-
46
- 1. Go to https://github.com/programinglive/commiter/releases
47
- 2. Click "Draft a new release"
48
- 3. Click "Choose a tag" and select `v1.1.9`
49
- 4. Set the release title to `v1.1.9`
50
- 5. Copy the release notes from CHANGELOG.md (lines 5-10):
51
- ```markdown
52
- ### 🐛 Bug Fixes
53
-
54
- * convert release scripts to CJS to support ESM projects ([842da02](https://github.com/programinglive/commiter/commit/842da0298f1c4df7aa93b43ca8698e3669ef6450))
55
- ```
56
- 6. Click "Publish release"
57
- 7. Repeat for other versions if needed
58
-
59
- ### Option 3: Use GitHub CLI (if installed)
60
-
61
- If you have GitHub CLI installed (`gh`):
62
-
63
- ```bash
64
- # Create release for v1.1.9
65
- gh release create v1.1.9 \
66
- --title "v1.1.9" \
67
- --notes "### 🐛 Bug Fixes
68
-
69
- * convert release scripts to CJS to support ESM projects"
70
-
71
- # Or create from CHANGELOG
72
- gh release create v1.1.9 --notes-file CHANGELOG.md
73
- ```
74
-
75
- ## After Creating Releases
76
-
77
- Once releases are created, they will appear on:
78
- - https://github.com/programinglive/commiter/releases
79
- - The right sidebar of your repository
80
- - In the repository's release feed
81
-
82
- ## Automating Future Releases
83
-
84
- To automatically create GitHub releases during your release process, you can:
85
-
86
- 1. **Add to your release script** - Modify `scripts/release.cjs` to create GitHub releases
87
- 2. **Use GitHub Actions** - Set up a workflow that creates releases when tags are pushed
88
- 3. **Use the script** - Run `scripts/create-releases.js` after each release
89
-
90
- ## Troubleshooting
91
-
92
- ### "GITHUB_TOKEN not set"
93
- Make sure you've set the environment variable in your current terminal session.
94
-
95
- ### "API rate limit exceeded"
96
- GitHub API has rate limits. The script waits 1 second between requests to avoid this. If you hit the limit, wait an hour and try again.
97
-
98
- ### "Resource not accessible by integration"
99
- Your token doesn't have the right permissions. Make sure you selected the `repo` scope when creating the token.
100
-
101
- ## Security Note
102
-
103
- **Never commit your GitHub token to the repository!** Always use environment variables or secure secret management.
1
+ # Creating GitHub Releases
2
+
3
+ This guide explains how to populate your GitHub releases page with releases from your tags.
4
+
5
+ ## Problem
6
+
7
+ You have tags in your repository (v1.0.0, v1.1.9, etc.) but the GitHub releases page is empty. GitHub doesn't automatically create releases from tags - you need to create them manually.
8
+
9
+ ## Solution Options
10
+
11
+ ### Option 1: Use the Automated Script (Recommended)
12
+
13
+ We've created a script that will automatically create releases for all your tags using the content from CHANGELOG.md.
14
+
15
+ #### Prerequisites
16
+ 1. Create a GitHub Personal Access Token:
17
+ - Go to https://github.com/settings/tokens
18
+ - Click "Generate new token" → "Generate new token (classic)"
19
+ - Give it a name like "Commiter Releases"
20
+ - Select scope: `repo` (Full control of private repositories)
21
+ - Click "Generate token"
22
+ - **Copy the token immediately** (you won't see it again!)
23
+
24
+ #### Steps
25
+ 1. Set your GitHub token as an environment variable:
26
+ ```powershell
27
+ # Windows PowerShell
28
+ $env:GITHUB_TOKEN="your_token_here"
29
+ ```
30
+
31
+ 2. Run the script:
32
+ ```bash
33
+ node scripts/create-releases.js
34
+ ```
35
+
36
+ 3. The script will:
37
+ - Read all your local tags
38
+ - Parse CHANGELOG.md for release notes
39
+ - Create GitHub releases for each tag
40
+ - Skip tags that already have releases
41
+
42
+ ### Option 2: Create Releases Manually
43
+
44
+ If you prefer to create releases manually or just want to create the latest release:
45
+
46
+ 1. Go to https://github.com/programinglive/commiter/releases
47
+ 2. Click "Draft a new release"
48
+ 3. Click "Choose a tag" and select `v1.1.9`
49
+ 4. Set the release title to `v1.1.9`
50
+ 5. Copy the release notes from CHANGELOG.md (lines 5-10):
51
+ ```markdown
52
+ ### 🐛 Bug Fixes
53
+
54
+ * convert release scripts to CJS to support ESM projects ([842da02](https://github.com/programinglive/commiter/commit/842da0298f1c4df7aa93b43ca8698e3669ef6450))
55
+ ```
56
+ 6. Click "Publish release"
57
+ 7. Repeat for other versions if needed
58
+
59
+ ### Option 3: Use GitHub CLI (if installed)
60
+
61
+ If you have GitHub CLI installed (`gh`):
62
+
63
+ ```bash
64
+ # Create release for v1.1.9
65
+ gh release create v1.1.9 \
66
+ --title "v1.1.9" \
67
+ --notes "### 🐛 Bug Fixes
68
+
69
+ * convert release scripts to CJS to support ESM projects"
70
+
71
+ # Or create from CHANGELOG
72
+ gh release create v1.1.9 --notes-file CHANGELOG.md
73
+ ```
74
+
75
+ ## After Creating Releases
76
+
77
+ Once releases are created, they will appear on:
78
+ - https://github.com/programinglive/commiter/releases
79
+ - The right sidebar of your repository
80
+ - In the repository's release feed
81
+
82
+ ## Automating Future Releases
83
+
84
+ To automatically create GitHub releases during your release process, you can:
85
+
86
+ 1. **Add to your release script** - Modify `scripts/release.cjs` to create GitHub releases
87
+ 2. **Use GitHub Actions** - Set up a workflow that creates releases when tags are pushed
88
+ 3. **Use the script** - Run `scripts/create-releases.js` after each release
89
+
90
+ ## Troubleshooting
91
+
92
+ ### "GITHUB_TOKEN not set"
93
+ Make sure you've set the environment variable in your current terminal session.
94
+
95
+ ### "API rate limit exceeded"
96
+ GitHub API has rate limits. The script waits 1 second between requests to avoid this. If you hit the limit, wait an hour and try again.
97
+
98
+ ### "Resource not accessible by integration"
99
+ Your token doesn't have the right permissions. Make sure you selected the `repo` scope when creating the token.
100
+
101
+ ## Security Note
102
+
103
+ **Never commit your GitHub token to the repository!** Always use environment variables or secure secret management.
@@ -1,101 +1,101 @@
1
- # Quick Guide: Create GitHub Release for v1.1.9
2
-
3
- Follow these simple steps to create your first GitHub release:
4
-
5
- ## Step 1: Navigate to New Release Page
6
- 1. Make sure you're logged into GitHub
7
- 2. Go to: https://github.com/programinglive/commiter/releases/new
8
-
9
- ## Step 2: Fill in the Form
10
-
11
- ### Choose a tag
12
- - Click "Choose a tag"
13
- - Type: `v1.1.9`
14
- - Click "Create new tag: v1.1.9 on publish"
15
-
16
- ### Release title
17
- - Type: `v1.1.9`
18
-
19
- ### Describe this release
20
- Copy and paste this content:
21
-
22
- ```markdown
23
- ### 🐛 Bug Fixes
24
-
25
- * convert release scripts to CJS to support ESM projects ([842da02](https://github.com/programinglive/commiter/commit/842da0298f1c4df7aa93b43ca8698e3669ef6450))
26
- ```
27
-
28
- ## Step 3: Publish
29
- - Click the green "Publish release" button
30
-
31
- ## Done! ✅
32
-
33
- Your release will now appear at: https://github.com/programinglive/commiter/releases
34
-
35
- ---
36
-
37
- ## Create More Releases (Optional)
38
-
39
- If you want to create releases for older versions, here's the content for each:
40
-
41
- ### v1.1.8
42
- **Title:** `v1.1.8`
43
- **Description:**
44
- ```markdown
45
- ### 🐛 Bug Fixes
46
-
47
- * update installation script to copy missing files and update gitignore ([5d56259](https://github.com/programinglive/commiter/commit/5d562592fe35b684fa12bd89748b24551ae28a66))
48
- ```
49
-
50
- ### v1.1.7
51
- **Title:** `v1.1.7`
52
- **Description:**
53
- ```markdown
54
- ### 📝 Documentation
55
-
56
- * recommend dev workflow mcp server ([58a5054](https://github.com/programinglive/commiter/commit/58a5054fafd627ef23c448fd93b1383518590ad2))
57
- ```
58
-
59
- ### v1.1.6
60
- **Title:** `v1.1.6`
61
- **Description:**
62
- ```markdown
63
- ### 🐛 Bug Fixes
64
-
65
- * revert to simple release notes staging to avoid git ref conflicts ([2f6a40e](https://github.com/programinglive/commiter/commit/2f6a40ed7259cffdb0b1de1633af3e43df475044))
66
- ```
67
-
68
- ### v1.1.5
69
- **Title:** `v1.1.5`
70
- **Description:**
71
- ```markdown
72
- ### ✨ Features
73
-
74
- * include release notes in release commit via amendment ([3f2afa8](https://github.com/programinglive/commiter/commit/3f2afa8bd0bd264d047df06ae791384e74dc827e))
75
-
76
- ### 📝 Documentation
77
-
78
- * update release notes for v1.1.5 ([cb3dbe6](https://github.com/programinglive/commiter/commit/cb3dbe62a85a174bfb074e3d2526a005fc83d0d7))
79
- ```
80
-
81
- ### v1.1.1
82
- **Title:** `v1.1.1`
83
- **Description:**
84
- ```markdown
85
- ### 🐛 Bug Fixes
86
-
87
- * remove fs.F_OK deprecation warning ([1b0652b](https://github.com/programinglive/commiter/commit/1b0652b88d1b095e1045994948f75ce8194f9d3a))
88
- ```
89
-
90
- ### v1.0.12
91
- **Title:** `v1.0.12`
92
- **Description:**
93
- ```markdown
94
- ### ✨ Features
95
-
96
- * auto-detect test command during release ([602e30e](https://github.com/programinglive/commiter/commit/602e30e94ff7c58b35f8c54bd495c0334352c72c))
97
- ```
98
-
99
- ---
100
-
101
- **Tip:** You only need to create releases for the major versions (1.1.9, 1.1.8, 1.1.7, etc.). You can skip the older patch versions if you want to save time.
1
+ # Quick Guide: Create GitHub Release for v1.1.9
2
+
3
+ Follow these simple steps to create your first GitHub release:
4
+
5
+ ## Step 1: Navigate to New Release Page
6
+ 1. Make sure you're logged into GitHub
7
+ 2. Go to: https://github.com/programinglive/commiter/releases/new
8
+
9
+ ## Step 2: Fill in the Form
10
+
11
+ ### Choose a tag
12
+ - Click "Choose a tag"
13
+ - Type: `v1.1.9`
14
+ - Click "Create new tag: v1.1.9 on publish"
15
+
16
+ ### Release title
17
+ - Type: `v1.1.9`
18
+
19
+ ### Describe this release
20
+ Copy and paste this content:
21
+
22
+ ```markdown
23
+ ### 🐛 Bug Fixes
24
+
25
+ * convert release scripts to CJS to support ESM projects ([842da02](https://github.com/programinglive/commiter/commit/842da0298f1c4df7aa93b43ca8698e3669ef6450))
26
+ ```
27
+
28
+ ## Step 3: Publish
29
+ - Click the green "Publish release" button
30
+
31
+ ## Done! ✅
32
+
33
+ Your release will now appear at: https://github.com/programinglive/commiter/releases
34
+
35
+ ---
36
+
37
+ ## Create More Releases (Optional)
38
+
39
+ If you want to create releases for older versions, here's the content for each:
40
+
41
+ ### v1.1.8
42
+ **Title:** `v1.1.8`
43
+ **Description:**
44
+ ```markdown
45
+ ### 🐛 Bug Fixes
46
+
47
+ * update installation script to copy missing files and update gitignore ([5d56259](https://github.com/programinglive/commiter/commit/5d562592fe35b684fa12bd89748b24551ae28a66))
48
+ ```
49
+
50
+ ### v1.1.7
51
+ **Title:** `v1.1.7`
52
+ **Description:**
53
+ ```markdown
54
+ ### 📝 Documentation
55
+
56
+ * recommend dev workflow mcp server ([58a5054](https://github.com/programinglive/commiter/commit/58a5054fafd627ef23c448fd93b1383518590ad2))
57
+ ```
58
+
59
+ ### v1.1.6
60
+ **Title:** `v1.1.6`
61
+ **Description:**
62
+ ```markdown
63
+ ### 🐛 Bug Fixes
64
+
65
+ * revert to simple release notes staging to avoid git ref conflicts ([2f6a40e](https://github.com/programinglive/commiter/commit/2f6a40ed7259cffdb0b1de1633af3e43df475044))
66
+ ```
67
+
68
+ ### v1.1.5
69
+ **Title:** `v1.1.5`
70
+ **Description:**
71
+ ```markdown
72
+ ### ✨ Features
73
+
74
+ * include release notes in release commit via amendment ([3f2afa8](https://github.com/programinglive/commiter/commit/3f2afa8bd0bd264d047df06ae791384e74dc827e))
75
+
76
+ ### 📝 Documentation
77
+
78
+ * update release notes for v1.1.5 ([cb3dbe6](https://github.com/programinglive/commiter/commit/cb3dbe62a85a174bfb074e3d2526a005fc83d0d7))
79
+ ```
80
+
81
+ ### v1.1.1
82
+ **Title:** `v1.1.1`
83
+ **Description:**
84
+ ```markdown
85
+ ### 🐛 Bug Fixes
86
+
87
+ * remove fs.F_OK deprecation warning ([1b0652b](https://github.com/programinglive/commiter/commit/1b0652b88d1b095e1045994948f75ce8194f9d3a))
88
+ ```
89
+
90
+ ### v1.0.12
91
+ **Title:** `v1.0.12`
92
+ **Description:**
93
+ ```markdown
94
+ ### ✨ Features
95
+
96
+ * auto-detect test command during release ([602e30e](https://github.com/programinglive/commiter/commit/602e30e94ff7c58b35f8c54bd495c0334352c72c))
97
+ ```
98
+
99
+ ---
100
+
101
+ **Tip:** You only need to create releases for the major versions (1.1.9, 1.1.8, 1.1.7, etc.). You can skip the older patch versions if you want to save time.