@monoweave/plugin-github 3.8.0 → 3.8.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.
Files changed (2) hide show
  1. package/lib/plugin.js +4 -1
  2. package/package.json +1 -1
package/lib/plugin.js CHANGED
@@ -77,7 +77,10 @@ export const createPluginInternals = (options) => async (context, config, change
77
77
  body: combinedChangelog,
78
78
  draft: false,
79
79
  prerelease: config.prerelease,
80
- make_latest: options.makeLatest ?? true,
80
+ // The GitHub REST API expects make_latest as a string enum
81
+ // ('true' | 'false' | 'legacy'), not a boolean.
82
+ // See: https://docs.github.com/en/rest/releases/releases#create-a-release
83
+ make_latest: (options.makeLatest ?? true) ? 'true' : 'false',
81
84
  });
82
85
  }
83
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoweave/plugin-github",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",