@programinglive/dev-workflow-mcp-server 1.5.4 โ†’ 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.
@@ -48,9 +48,60 @@ jobs:
48
48
  run: |
49
49
  node scripts/extract-release-notes.cjs "${{ steps.version.outputs.version }}" > release-notes.md
50
50
 
51
- - name: Create GitHub release
52
- uses: softprops/action-gh-release@v2
51
+ - name: Publish GitHub release
52
+ uses: actions/github-script@v7
53
+ env:
54
+ RELEASE_TAG: ${{ steps.version.outputs.tag }}
53
55
  with:
54
- tag_name: ${{ steps.version.outputs.tag }}
55
- name: Release ${{ steps.version.outputs.tag }}
56
- body_path: release-notes.md
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,13 @@
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
+
5
12
  ### [1.5.4](https://github.com/programinglive/dev-workflow-mcp-server/compare/v1.5.3...v1.5.4) (2025-12-05)
6
13
 
7
14
 
@@ -3,6 +3,14 @@
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)
6
14
 
7
15
  ## 1.5.3 โ€” 2025-12-05 โ€” ๐Ÿ› Bug Fixes
8
16
  - correct package.json version from null to 1.5.2 for npm publish (be60c99)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@programinglive/dev-workflow-mcp-server",
3
- "version": "1.5.4",
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",