@programinglive/dev-workflow-mcp-server 1.5.3 โ†’ 1.5.5

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.
@@ -0,0 +1,107 @@
1
+ name: Create GitHub Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+ inputs:
9
+ tag:
10
+ description: "Existing tag (e.g., v1.5.3) to create/update the release for"
11
+ required: true
12
+
13
+ permissions:
14
+ contents: write
15
+
16
+ jobs:
17
+ release:
18
+ runs-on: ubuntu-latest
19
+
20
+ steps:
21
+ - name: Checkout repository
22
+ uses: actions/checkout@v4
23
+
24
+ - name: Setup Node.js
25
+ uses: actions/setup-node@v4
26
+ with:
27
+ node-version: "20"
28
+
29
+ - name: Determine version
30
+ id: version
31
+ run: |
32
+ if [ -n "${{ github.event.inputs.tag }}" ]; then
33
+ TAG="${{ github.event.inputs.tag }}"
34
+ else
35
+ TAG="${GITHUB_REF_NAME}"
36
+ fi
37
+
38
+ if [ -z "$TAG" ]; then
39
+ echo "Unable to determine tag name"
40
+ exit 1
41
+ fi
42
+
43
+ VERSION="${TAG#v}"
44
+ echo "tag=$TAG" >> "$GITHUB_OUTPUT"
45
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
46
+
47
+ - name: Generate release notes
48
+ run: |
49
+ node scripts/extract-release-notes.cjs "${{ steps.version.outputs.version }}" > release-notes.md
50
+
51
+ - name: Publish GitHub release
52
+ uses: actions/github-script@v7
53
+ env:
54
+ RELEASE_TAG: ${{ steps.version.outputs.tag }}
55
+ with:
56
+ script: |
57
+ const fs = require('fs');
58
+ const tag = process.env.RELEASE_TAG;
59
+ const owner = context.repo.owner;
60
+ const repo = context.repo.repo;
61
+ const name = `Release ${tag}`;
62
+ let body = '';
63
+ try {
64
+ body = fs.readFileSync('release-notes.md', 'utf8').trim();
65
+ } catch (error) {
66
+ core.warning(`Unable to read release notes file: ${error.message}`);
67
+ }
68
+
69
+ const fallbackBody = 'Release notes are unavailable. Please refer to CHANGELOG.md.';
70
+ const payloadBody = body.length > 0 ? body : fallbackBody;
71
+
72
+ async function createRelease() {
73
+ core.info(`Creating release ${tag}`);
74
+ await github.rest.repos.createRelease({
75
+ owner,
76
+ repo,
77
+ tag_name: tag,
78
+ name,
79
+ body: payloadBody,
80
+ make_latest: 'true'
81
+ });
82
+ }
83
+
84
+ async function updateRelease(releaseId) {
85
+ core.info(`Updating existing release ${tag}`);
86
+ await github.rest.repos.updateRelease({
87
+ owner,
88
+ repo,
89
+ release_id: releaseId,
90
+ tag_name: tag,
91
+ name,
92
+ body: payloadBody,
93
+ make_latest: 'true'
94
+ });
95
+ }
96
+
97
+ try {
98
+ const existing = await github.rest.repos.getReleaseByTag({ owner, repo, tag });
99
+ await updateRelease(existing.data.id);
100
+ } catch (error) {
101
+ if (error.status === 404) {
102
+ await createRelease();
103
+ } else {
104
+ core.error(`Failed to publish release: ${error.message}`);
105
+ throw error;
106
+ }
107
+ }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
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.5.5](https://github.com/programinglive/dev-workflow-mcp-server/compare/v1.5.4...v1.5.5) (2025-12-05)
6
+
7
+
8
+ ### ๐Ÿ“ Documentation
9
+
10
+ * add unreleased note for release automation ([a5478dc](https://github.com/programinglive/dev-workflow-mcp-server/commit/a5478dc5c65c3fb64576d254f9018ebe518a0c3f))
11
+
12
+ ### [1.5.4](https://github.com/programinglive/dev-workflow-mcp-server/compare/v1.5.3...v1.5.4) (2025-12-05)
13
+
14
+
15
+ ### ๐Ÿงน Chores
16
+
17
+ * **ci:** add github release automation workflow ([80d5ded](https://github.com/programinglive/dev-workflow-mcp-server/commit/80d5ded7e2be8f45c02d65c5564934c73262bc4c))
18
+ * **release:** version 1.5.3 changes and changelog ([c2698a7](https://github.com/programinglive/dev-workflow-mcp-server/commit/c2698a7cf55acf5251b423f512621de5802ba09a))
19
+ * run release scripts via cjs ([bc241c8](https://github.com/programinglive/dev-workflow-mcp-server/commit/bc241c80bc1ec7d9ffa4c7f2982d6cecf19853c1))
20
+ * **web:** update version display to 1.5.3 in docs page ([25e37f3](https://github.com/programinglive/dev-workflow-mcp-server/commit/25e37f3c7dab550de37f79d5c31bd0395251489c))
21
+ * **web:** update version display to 1.5.3 in Hero component ([b478449](https://github.com/programinglive/dev-workflow-mcp-server/commit/b478449b334beedafb13fa0bec4b3cf6e9739f81))
22
+
5
23
  ### [1.5.3](https://github.com/programinglive/dev-workflow-mcp-server/compare/v1.5.2...v1.5.3) (2025-12-05)
6
24
 
7
25
 
@@ -3,6 +3,21 @@
3
3
  Authoritative history of user-visible changes for the Development Workflow MCP Server. Each entry highlights the improvements that shipped with the tagged version.
4
4
 
5
5
  ## Unreleased
6
+ - ensure GitHub release workflow writes release notes correctly
7
+
8
+ ## 1.5.4 โ€” 2025-12-05 โ€” ๐Ÿงน Chores
9
+ - **ci:** add github release automation workflow (80d5ded)
10
+ - **release:** version 1.5.3 changes and changelog (c2698a7)
11
+ - run release scripts via cjs (bc241c8)
12
+ - **web:** update version display to 1.5.3 in docs page (25e37f3)
13
+ - **web:** update version display to 1.5.3 in Hero component (b478449)
14
+
15
+ ## 1.5.3 โ€” 2025-12-05 โ€” ๐Ÿ› Bug Fixes
16
+ - correct package.json version from null to 1.5.2 for npm publish (be60c99)
17
+ - **news:** improve error handling and form accessibility (5e0a1a8)
18
+ - switch to static export for Netlify deployment (acddfd7)
19
+ - **release:** null ๐Ÿš€ (55d7f99)
20
+ - **release:** prepare patch release 1.5.3 (5b92c42)
6
21
 
7
22
  ## 1.5.0 โ€” 2025-12-02
8
23
  - See CHANGELOG for details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@programinglive/dev-workflow-mcp-server",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "MCP server to enforce development workflow discipline",
5
5
  "homepage": "https://devworkflow.programinglive.com/",
6
6
  "mcpName": "io.github.programinglive/dev-workflow-mcp-server",
@@ -22,10 +22,10 @@
22
22
  "check": "node --check index.js",
23
23
  "prepare": "husky",
24
24
  "postinstall": "node install.js",
25
- "release": "node scripts/release.js",
26
- "release:major": "node scripts/release.js major",
27
- "release:minor": "node scripts/release.js minor",
28
- "release:patch": "node scripts/release.js patch",
25
+ "release": "node scripts/release.cjs",
26
+ "release:major": "node scripts/release.cjs major",
27
+ "release:minor": "node scripts/release.cjs minor",
28
+ "release:patch": "node scripts/release.cjs patch",
29
29
  "web": "npm start --prefix web"
30
30
  },
31
31
  "keywords": [
@@ -0,0 +1,78 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+
6
+ function escapeRegExp(value) {
7
+ return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
8
+ }
9
+
10
+ function findReleaseSection(content, version) {
11
+ const headingPattern = new RegExp(`^##\\s+${escapeRegExp(version)}(?:\\s+โ€”[^\\n]*)?`, 'm');
12
+ const headingMatch = content.match(headingPattern);
13
+ if (!headingMatch) {
14
+ return null;
15
+ }
16
+
17
+ const startIndex = headingMatch.index;
18
+ const afterHeadingIndex = startIndex + headingMatch[0].length;
19
+ const rest = content.slice(afterHeadingIndex);
20
+
21
+ const nextHeadingPattern = /^##\s+/m;
22
+ const nextHeadingMatch = nextHeadingPattern.exec(rest);
23
+ const sectionEnd = nextHeadingMatch ? afterHeadingIndex + nextHeadingMatch.index : content.length;
24
+
25
+ const section = content.slice(startIndex, sectionEnd).trim();
26
+ return section || null;
27
+ }
28
+
29
+ function main() {
30
+ const rawVersionArg = process.argv[2];
31
+ let version = rawVersionArg;
32
+
33
+ if (!version) {
34
+ try {
35
+ const pkg = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'package.json'), 'utf8'));
36
+ version = pkg.version;
37
+ } catch {
38
+ // ignore
39
+ }
40
+ }
41
+
42
+ if (!version) {
43
+ console.error('Unable to determine version. Provide one explicitly, e.g., node scripts/extract-release-notes.cjs 1.5.3');
44
+ process.exit(1);
45
+ }
46
+
47
+ version = version.replace(/^v/i, '');
48
+
49
+ const releaseNotesPath = path.join(process.cwd(), 'docs', 'release-notes', 'RELEASE_NOTES.md');
50
+ if (!fs.existsSync(releaseNotesPath)) {
51
+ console.error(`Release notes file not found at ${releaseNotesPath}`);
52
+ process.exit(1);
53
+ }
54
+
55
+ const content = fs.readFileSync(releaseNotesPath, 'utf8');
56
+ const section = findReleaseSection(content, version);
57
+
58
+ if (!section) {
59
+ console.warn(`No release notes section found for version ${version}.`);
60
+ process.stdout.write(`## ${version}\n\nNo detailed release notes were found. Please refer to the CHANGELOG.\n`);
61
+ return;
62
+ }
63
+
64
+ process.stdout.write(`${section.trim()}\n`);
65
+ }
66
+
67
+ if (require.main === module) {
68
+ try {
69
+ main();
70
+ } catch (error) {
71
+ console.error(`Failed to extract release notes: ${error.message}`);
72
+ process.exit(1);
73
+ }
74
+ }
75
+
76
+ module.exports = {
77
+ findReleaseSection,
78
+ };
@@ -3,5 +3,5 @@ import { strict as assert } from 'node:assert'
3
3
 
4
4
  test('patch release preparation', () => {
5
5
  // Verify we can prepare a patch release
6
- assert.ok(true, 'Patch release 1.5.3 preparation test')
6
+ assert.ok(true, 'Patch release 1.5.3 preparation completed')
7
7
  })
@@ -22,7 +22,7 @@ export default function DocsPage() {
22
22
  </p>
23
23
 
24
24
  <div className="bg-emerald-500/10 border border-emerald-500/20 rounded-lg p-4 mb-8">
25
- <p className="text-emerald-400 font-semibold">Version: 1.3.12</p>
25
+ <p className="text-emerald-400 font-semibold">Version: 1.5.3</p>
26
26
  </div>
27
27
 
28
28
  <h2 className="text-3xl font-bold mt-12 mb-6">Features</h2>
@@ -17,7 +17,7 @@ export default function Hero() {
17
17
  .catch(() => setDownloads(null));
18
18
 
19
19
  // Version is hardcoded for static export
20
- setVersion("1.5.1");
20
+ setVersion("1.5.3");
21
21
  }, []);
22
22
 
23
23
  const formatDownloads = (num: number) => {